A patch which flattens out the hook structure for the 2.4 lsm kernel is available at: http://www.intercode.com.au/jmorris/patches/diff-lsm-flatten-2418-lsm3-01.txt.gz This moves all of the sub structures into the main security_ops struct, to ensure only one level of indirection for hook functions. It compiles ok, and I've briefly tested loading all of the modules. diffstat output is included below. If it looks ok to everyone, I'll start work on the 2.5 version. Incidently, does anyone know a good way to try and make use of the bk merging facilities to apply this patch to the 2.5 tree? - James -- James Morris <jmorrisat_private> diffstat: drivers/char/tty_io.c | 2 fs/attr.c | 4 fs/dnotify.c | 2 fs/exec.c | 12 fs/fcntl.c | 8 fs/file_table.c | 6 fs/inode.c | 6 fs/ioctl.c | 2 fs/locks.c | 12 fs/namei.c | 42 +- fs/namespace.c | 18 fs/open.c | 2 fs/read_write.c | 16 fs/readdir.c | 2 fs/stat.c | 10 fs/super.c | 6 include/linux/security.h | 956 +++++++++++++++++++++++------------------------ include/net/sock.h | 4 ipc/msg.c | 24 - ipc/sem.c | 16 ipc/shm.c | 20 ipc/util.c | 2 kernel/exit.c | 4 kernel/fork.c | 6 kernel/kmod.c | 2 kernel/module.c | 8 kernel/sched.c | 10 kernel/signal.c | 2 kernel/sys.c | 38 - kernel/uid16.c | 2 mm/filemap.c | 4 mm/mmap.c | 2 mm/mprotect.c | 2 net/core/datagram.c | 2 net/core/dev.c | 2 net/core/scm.c | 2 net/core/skbuff.c | 8 net/ipv4/ip_fragment.c | 2 net/ipv4/ip_gre.c | 4 net/ipv4/ip_options.c | 2 net/ipv4/ip_output.c | 2 net/ipv4/ipip.c | 4 net/ipv4/ipmr.c | 6 net/ipv4/tcp_ipv4.c | 2 net/socket.c | 28 - net/unix/af_unix.c | 8 security/capability.c | 411 ++++++++------------ security/dte/dte.c | 397 ++++++++----------- security/dte/syscall.c | 2 security/dte/task.c | 8 security/dummy.c | 410 ++++++++------------ security/lids/lids_lsm.c | 403 ++++++++----------- security/lsm_ip_glue.c | 20 security/owlsm.c | 389 ++++++++----------- security/security.c | 19 security/selinux/hooks.c | 404 ++++++++----------- 56 files changed, 1749 insertions(+), 2038 deletions(-) _______________________________________________ linux-security-module mailing list linux-security-moduleat_private http://mail.wirex.com/mailman/listinfo/linux-security-module
This archive was generated by hypermail 2b30 : Sun Jun 30 2002 - 07:27:58 PDT