diff options
Diffstat (limited to 'meta/classes-global')
| -rw-r--r-- | meta/classes-global/sanity.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes-global/sanity.bbclass b/meta/classes-global/sanity.bbclass index 72dab0fea2..a0b2508e11 100644 --- a/meta/classes-global/sanity.bbclass +++ b/meta/classes-global/sanity.bbclass | |||
| @@ -484,6 +484,8 @@ def check_userns(): | |||
| 484 | # succeeds (at which point the uid is nobody) but writing to the uid_map | 484 | # succeeds (at which point the uid is nobody) but writing to the uid_map |
| 485 | # fails (so the uid isn't reset back to the user's uid). We can detect this. | 485 | # fails (so the uid isn't reset back to the user's uid). We can detect this. |
| 486 | parentuid = os.getuid() | 486 | parentuid = os.getuid() |
| 487 | if not bb.utils.is_local_uid(parentuid): | ||
| 488 | return None | ||
| 487 | pid = os.fork() | 489 | pid = os.fork() |
| 488 | if not pid: | 490 | if not pid: |
| 489 | try: | 491 | try: |
