mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] missing checks in exec_permission_light()
@ 2002-05-01  3:41 Alexander Viro
  2002-05-01  8:03 ` Daniel Pittman
  2002-05-03  8:03 ` Pavel Machek
  0 siblings, 2 replies; 6+ messages in thread
From: Alexander Viro @ 2002-05-01  3:41 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel

	Missing checks added...

diff -urN C12-0/fs/namei.c C12-current/fs/namei.c
--- C12-0/fs/namei.c	Tue Apr 30 20:23:38 2002
+++ C12-current/fs/namei.c	Tue Apr 30 23:37:15 2002
@@ -324,6 +324,12 @@
 	if (mode & MAY_EXEC)
 		return 0;
 
+	if ((inode->i_mode & S_IXUGO) && capable(CAP_DAC_OVERRIDE))
+		return 0;
+
+	if (S_ISDIR(inode->i_mode) && capable(CAP_DAC_READ_SEARCH))
+		return 0;
+
 	return -EACCES;
 }
 


^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <0C01A29FBAE24448A792F5C68F5EA47D27C6C7@nasdaq.ms.ensim.com>]

end of thread, other threads:[~2002-05-03  8:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-01  3:41 [PATCH] missing checks in exec_permission_light() Alexander Viro
2002-05-01  8:03 ` Daniel Pittman
2002-05-03  8:03 ` Pavel Machek
2002-05-03  8:36   ` Alexander Viro
2002-05-03  8:40     ` Pavel Machek
     [not found] <0C01A29FBAE24448A792F5C68F5EA47D27C6C7@nasdaq.ms.ensim.com>
2002-05-03  8:36 ` pmenage

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®