mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* 2.6.18 - check for chroot, broken root and cwd values in procfs
@ 2006-10-12 14:02 Bastian Blank
  2006-10-12 14:21 ` Andreas Schwab
  2006-10-13 23:06 ` Bastian Blank
  0 siblings, 2 replies; 5+ messages in thread
From: Bastian Blank @ 2006-10-12 14:02 UTC (permalink / raw)
  To: linux-kernel, Eric W. Biederman, Andrew Morton, Linus Torvalds; +Cc: md

[-- Attachment #1: Type: text/plain, Size: 634 bytes --]

Hi folks

The commit 778c1144771f0064b6f51bee865cceb0d996f2f9 replaced the old
root-based security checks in procfs with processed based ones.

This makes the old check for chroot "[ -r /proc/1/root ]" unusable as
readlink on it now always succedds. Also it provides buggy values inside
a chroot, both /proc/1/root and /proc/self/root points to / but in real
they are different.

Is this a desired output or can I call this a bug? If the behaviour is
correct, is there a replacement for this check?

Bastian

-- 
Behind every great man, there is a woman -- urging him on.
		-- Harry Mudd, "I, Mudd", stardate 4513.3

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-10-21 10:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-12 14:02 2.6.18 - check for chroot, broken root and cwd values in procfs Bastian Blank
2006-10-12 14:21 ` Andreas Schwab
2006-10-13 23:06 ` Bastian Blank
2006-10-14  3:02   ` Eric W. Biederman
2006-10-21 10:16     ` Willy Tarreau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®