lkml.org 
[lkml]   [1998]   [Apr]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subjectsymbols not exported in 2.1.92 (ksyms.c)
Date
From
Hi everyone,

the symbols "compute_creds" and "securebits" are not exported in kernel 2.1.92
which prevents a bunch of modules from loading. This can be fixed by simply
adding the EXPORT_SYMBOL() calls to kernel/ksys.c (see below).
In the same run I eliminated the "raising capabilities" printk() calls.

simon bock <sbock@uni-tuebingen.de>
--
"I am Bill Gates of Borg. You will be assimilated. If you are
already assimilated, update to Assimilation95 for only $149."


--- linux/kernel/ksyms.c.orig Fri Apr 3 04:51:08 1998
+++ linux/kernel/ksyms.c Fri Apr 3 04:51:12 1998
@@ -69,6 +69,8 @@
#include <linux/smp.h>
#endif

+#include <linux/securebits.h>
+
extern char *get_options(char *str, int *ints);
extern void set_device_ro(kdev_t dev,int flag);
extern struct file_operations * get_blkfops(unsigned int);
@@ -99,6 +101,9 @@
EXPORT_SYMBOL(get_module_symbol);
#endif
EXPORT_SYMBOL(get_options);
+
+EXPORT_SYMBOL(compute_creds);
+EXPORT_SYMBOL(securebits);

#ifdef CONFIG_PCI
EXPORT_SYMBOL(pcibios_present);
--- linux/fs/exec.c.orig Fri Apr 3 04:51:48 1998
+++ linux/fs/exec.c Fri Apr 3 04:51:49 1998
@@ -685,6 +685,7 @@
current->cap_effective.cap = new_permitted & bprm->cap_effective.cap;

/* XXX - Audit candidate */
+/*
if (!cap_isclear(current->cap_effective)) {
printk(KERN_NOTICE
"raising capabilities on `%s'(pid=%d) [%04x]:%lu\n",
@@ -692,7 +693,7 @@
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;
if (current->euid != current->uid || current->egid != current->gid ||
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu

\
 
 \ /
  Last update: 2005-03-22 13:42    [W:3.934 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site