diff options
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 33fd061305c4..1db40195d178 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -2356,7 +2356,7 @@ static int selinux_bprm_set_creds(struct linux_binprm *bprm) | |||
2356 | 2356 | ||
2357 | /* SELinux context only depends on initial program or script and not | 2357 | /* SELinux context only depends on initial program or script and not |
2358 | * the script interpreter */ | 2358 | * the script interpreter */ |
2359 | if (bprm->cred_prepared) | 2359 | if (bprm->called_set_creds) |
2360 | return 0; | 2360 | return 0; |
2361 | 2361 | ||
2362 | old_tsec = current_security(); | 2362 | old_tsec = current_security(); |