Skip to contentSkip to conversation

2.5.45: fix fs capabilities initialization

PATCH New Olaf Dietsche 1 participant 1 message Nov 1, 2002 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.5.45: fix fs capabilities initialization

This patch implements filesystem capabilities. It allows to run privileged executables without the need for suid root.

Changes:
- recognize new capability db immediately instead of after the next mount

The complete patch is available at:
<http://home.t-online.de/home/olaf.dietsche/linux/capability/>

Regards, Olaf.

fs/fscaps.c +1 -1
diff -urN a/fs/fscaps.c b/fs/fscaps.c
@@ -252,7 +252,7 @@
 		return;
 
 	if (__fscap_lookup(mnt, &nd))
-		return;
+		nd.dentry = NULL;
 
 	__info_init(mnt, nd.dentry);
 }