Skip to contentSkip to conversation

accessfs v0.5 ported to LSM - 2/2

PATCH New Olaf Dietsche 1 participant 1 message Sep 24, 2002 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 accessfs v0.5 ported to LSM - 2/2

Hi,

Accessfs is a new file system to control access to system resources. For further information see the help text.

Changes:
- ported to LSM
- support capabilities
- merged ipv4/ipv6 into ip

This part (2/2) adds accessfs itself on top of (1/2).

The patch is attached below. It is also available at:
<http://home.t-online.de/home/olaf.dietsche/linux/accessfs-2.5.34-0.5-2_2.patch.gz>

It applies to 2.5.3[5-8] with some offsets.

I did minimal testing using uml 0.58-2.5.34.

Regards, Olaf.

fs/Config.in +3 -0
diff -urN v2.5.34/fs/Config.in v2.5.34-accessfs/fs/Config.in
@@ -101,6 +101,9 @@
 tristate 'UFS file system support (read only)' CONFIG_UFS_FS
 dep_mbool '  UFS file system write support (DANGEROUS)' CONFIG_UFS_FS_WRITE $CONFIG_UFS_FS $CONFIG_EXPERIMENTAL
 
+dep_tristate 'Accessfs support (EXPERIMENTAL)' CONFIG_ACCESS_FS $CONFIG_EXPERIMENTAL
+source fs/accessfs/Config.in
+
 if [ "$CONFIG_NET" = "y" ]; then
 
    mainmenu_option next_comment
fs/Makefile +1 -0
diff -urN v2.5.34/fs/Makefile v2.5.34-accessfs/fs/Makefile
@@ -81,6 +81,7 @@
 obj-$(CONFIG_AUTOFS_FS)		+= autofs/
 obj-$(CONFIG_AUTOFS4_FS)	+= autofs4/
 obj-$(CONFIG_ADFS_FS)		+= adfs/
+obj-$(CONFIG_ACCESS_FS)		+= accessfs/
 obj-$(CONFIG_REISERFS_FS)	+= reiserfs/
 obj-$(CONFIG_SUN_OPENPROMFS)	+= openpromfs/
 obj-$(CONFIG_JFS_FS)		+= jfs/
fs/accessfs/Config.help +44 -0

44 lines not on this page · raw message

fs/accessfs/Config.in +7 -0
diff -urN v2.5.34/fs/accessfs/Config.in v2.5.34-accessfs/fs/accessfs/Config.in
@@ -0,0 +1,7 @@
+#
+# Accessfs configuration
+#
+
+if [ "$CONFIG_ACCESS_FS" != "n" ]; then
+	int '  Range of protected ports (1024-65536)' CONFIG_ACCESSFS_PROT_SOCK 1024
+fi
fs/accessfs/Makefile +10 -0
diff -urN v2.5.34/fs/accessfs/Makefile v2.5.34-accessfs/fs/accessfs/Makefile
@@ -0,0 +1,10 @@
+#
+# Makefile for the linux accessfs routines.
+#
+
+obj-$(CONFIG_ACCESS_FS) += accessfs.o accessfs-lsm.o
+accessfs-objs := inode.o
+accessfs-lsm-objs := security.o capabilities.o ip.o
+export-objs := inode.o
+
+include $(TOPDIR)/Rules.make
fs/accessfs/capabilities.c +73 -0

73 lines not on this page · raw message

fs/accessfs/inode.c +390 -0

390 lines not on this page · raw message

fs/accessfs/ip.c +41 -0

41 lines not on this page · raw message

fs/accessfs/security.c +47 -0

47 lines not on this page · raw message

include/linux/accessfs_fs.h +55 -0

55 lines not on this page · raw message