patch-2.1.93 linux/fs/exec.c

Next file: linux/fs/ext2/balloc.c
Previous file: linux/fs/devpts/root.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.92/linux/fs/exec.c linux/fs/exec.c
@@ -684,15 +684,8 @@
 	current->cap_permitted.cap = new_permitted;
 	current->cap_effective.cap = new_permitted & bprm->cap_effective.cap;
 	
-        /* XXX - Audit candidate */
-        if (!cap_isclear(current->cap_effective)) {
-                printk(KERN_NOTICE
-		       "raising capabilities on `%s'(pid=%d) [%04x]:%lu\n",
-		       current->comm, current->pid,
-		       kdev_t_to_nr(bprm->dentry->d_inode->i_dev), 
-		       bprm->dentry->d_inode->i_ino);
-        }
-	
+        /* AUD: Audit candidate if current->cap_effective is set */
+
         current->suid = current->euid = current->fsuid = bprm->e_uid;
         current->sgid = current->egid = current->fsgid = bprm->e_gid;
         if (current->euid != current->uid || current->egid != current->gid ||

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov