Public bug reported:

When an fd is disallowed from being inherited during exec, instead of           
closed it is duped to a special apparmor/.null file. This prevents the          
fd from being reused by another file in case the application expects            
the original file on a give fd (eg stdin/stdout etc). This results in           
a denial message like                                                           
[32375.561535] audit: type=1400 audit(1478825963.441:358): apparmor="DENIED" op\
eration="file_inherit" namespace="root//lxd-t_<var-lib-lxd>" profile="/sbin/dhc\
lient" name="/dev/pts/1" pid=16795 comm="dhclient" requested_mask="wr" denied_m\
ask="wr" fsuid=165536 ouid=165536                                               
                                                                                
Further access to the fd is resultin in the rather useless denial message       
of                                                                              
[32375.566820] audit: type=1400 audit(1478825963.445:359): apparmor="DENIED" op\
eration="file_perm" namespace="root//lxd-t_<var-lib-lxd>" profile="/sbin/dhclie\
nt" name="/apparmor/.null" pid=16795 comm="dhclient" requested_mask="w" denied_\
mask="w" fsuid=165536 ouid=0                                                    
                                                                                
since we have the original denial, the noisy and useless .null based            
denials can be skipped.

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: Incomplete

** Affects: linux (Ubuntu Xenial)
     Importance: Undecided
         Status: Incomplete

** Affects: linux (Ubuntu Yakkety)
     Importance: Undecided
         Status: Incomplete

** Affects: linux (Ubuntu Zesty)
     Importance: Undecided
         Status: Incomplete

** Also affects: linux (Ubuntu Zesty)
   Importance: Undecided
       Status: New

** Also affects: linux (Ubuntu Xenial)
   Importance: Undecided
       Status: New

** Also affects: linux (Ubuntu Yakkety)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1660836

Title:
  apparmor  auditing denied access of special apparmor .null fi\ le

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1660836/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to