lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Fri, 05 Nov 2010 18:33:45 -0400
From:	abirvalg@...abit.com
To:	linux-kernel@...r.kernel.org
Subject: procfs doesnt honor cap_dac_override

We have a folder /proc/1/fd which contains symlinks.
A superuser can do readlink() on those symlinks.
I expected that a non-root process with cap_dac_override capability set to  
EP could also readlink() those symlinks in /proc/1/fd, but alas  
"Permission denied".
Just to make sure that my process isn't the culprit, I ran it as a regular  
user with UID=1000, I set cap_dac_override=ep and navigated to /root  
folder (which is readable only by root) and did readlink() there. It  
worked. (/root folder is on ext4.)
Bottom line: procfs doesnt allow readlink() on certain symlinks owned by  
root even with cap_dac_override set.

Is this an expected behaviour or is this a bug?
Cheers.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ