Compilation fix for capabilities in 2.1.92

Finn Arne Gangstad (finnag@guardian.no)
Thu, 2 Apr 1998 12:28:21 +0200 (MET DST)


This should fix the compilaton problems and console-spam problems with
capabilities in 2.1.92:

- Finn Arne Gangstad

diff -ur linux-2.1.92.orig/fs/exec.c linux-2.1.92/fs/exec.c
--- linux-2.1.92.orig/fs/exec.c Thu Apr 2 12:04:10 1998
+++ linux-2.1.92/fs/exec.c Thu Apr 2 12:06:32 1998
@@ -684,6 +684,7 @@
current->cap_permitted.cap = new_permitted;
current->cap_effective.cap = new_permitted & bprm->cap_effective.cap;

+#if 0
/* XXX - Audit candidate */
if (!cap_isclear(current->cap_effective)) {
printk(KERN_NOTICE
@@ -692,6 +693,7 @@
kdev_t_to_nr(bprm->dentry->d_inode->i_dev),
bprm->dentry->d_inode->i_ino);
}
+#endif

current->suid = current->euid = current->fsuid = bprm->e_uid;
current->sgid = current->egid = current->fsgid = bprm->e_gid;
diff -ur linux-2.1.92.orig/kernel/ksyms.c linux-2.1.92/kernel/ksyms.c
--- linux-2.1.92.orig/kernel/ksyms.c Thu Apr 2 12:04:11 1998
+++ linux-2.1.92/kernel/ksyms.c Thu Apr 2 12:08:20 1998
@@ -389,6 +389,7 @@
EXPORT_SYMBOL(event);
EXPORT_SYMBOL(__down);
EXPORT_SYMBOL(__up);
+EXPORT_SYMBOL(securebits);

/* all busmice */
EXPORT_SYMBOL(add_mouse_randomness);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu