]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Merge remote-tracking branch 'selinux/master'
authorStephen Rothwell <sfr@canb.auug.org.au>
Tue, 17 Apr 2012 02:35:00 +0000 (12:35 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 17 Apr 2012 02:35:00 +0000 (12:35 +1000)
1  2 
include/linux/security.h
security/selinux/hooks.c
security/smack/smack_lsm.c

Simple merge
index 0b06685787b9fd6b4b56da8121bcf8d2338b08a7,e94349b85bfe1a38f7f3c04b049101ff98778fd0..fa2341b683314b0c5505f905e6712538555300ad
@@@ -2032,12 -1995,10 +2002,11 @@@ static int selinux_bprm_set_creds(struc
                        return rc;
        }
  
-       COMMON_AUDIT_DATA_INIT(&ad, PATH);
-       ad.selinux_audit_data = &sad;
+       ad.type = LSM_AUDIT_DATA_PATH;
        ad.u.path = bprm->file->f_path;
  
 -      if (bprm->file->f_path.mnt->mnt_flags & MNT_NOSUID)
 +      if ((bprm->file->f_path.mnt->mnt_flags & MNT_NOSUID) ||
 +          (bprm->unsafe & LSM_UNSAFE_NO_NEW_PRIVS))
                new_tsec->sid = old_tsec->sid;
  
        if (new_tsec->sid == old_tsec->sid) {
Simple merge