Patch to make 2.1.92 function for me.

Myrdraal (myrdraal@jackalz.dyn.ml.org)
Thu, 2 Apr 1998 05:20:11 -0500


--TB36FDmn/VVEgNH/
Content-Type: text/plain; charset=us-ascii

Hi,
This is the patch I came up with so that 2.1.92 would work with my
modules, and not print out that annoying "raising capabilities" message.
-Myrdraal

--TB36FDmn/VVEgNH/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="2.1.92-fix.diff"

--- linux/kernel/ksyms.old Thu Apr 2 05:15:27 1998
+++ linux/kernel/ksyms.c Thu Apr 2 04:55:27 1998
@@ -354,6 +354,8 @@
EXPORT_SYMBOL(_ctype);
EXPORT_SYMBOL(secure_tcp_sequence_number);
EXPORT_SYMBOL(get_random_bytes);
+EXPORT_SYMBOL(securebits);
+EXPORT_SYMBOL(compute_creds);

/* Program loader interfaces */
EXPORT_SYMBOL(setup_arg_pages);
--- linux/fs/exec.old Thu Apr 2 05:15:00 1998
+++ linux/fs/exec.c Thu Apr 2 03:22:23 1998
@@ -685,13 +685,13 @@
current->cap_effective.cap = new_permitted & bprm->cap_effective.cap;

/* XXX - Audit candidate */
- if (!cap_isclear(current->cap_effective)) {
+/* if (!cap_isclear(current->cap_effective)) {
printk(KERN_NOTICE
"raising capabilities on `%s'(pid=%d) [%04x]:%lu\n",
current->comm, current->pid,
kdev_t_to_nr(bprm->dentry->d_inode->i_dev),
bprm->dentry->d_inode->i_ino);
- }
+ }*/

current->suid = current->euid = current->fsuid = bprm->e_uid;
current->sgid = current->egid = current->fsgid = bprm->e_gid;

--TB36FDmn/VVEgNH/--

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