accessfs v0.4 - 2.5.34
Subsystems (2)
PATCH 1/1 accessfs v0.4 - 2.5.34
Hi,
Accessfs is a new file system to control access to system resources. Currently it controls access to inet_bind() with ports < 1024 only.
With this patch, there's no need anymore to run internet daemons as root. You can individually configure which user/program can bind to ports below 1024.
For further information see the help text.
I adapted accessfs to linux 2.5.34.
The patch is attached below. It is also available at:
<http://home.t-online.de/home/olaf.dietsche/linux/accessfs-2.5.34-0.4.patch.gz>
I did minimal testing using uml 0.58-2.5.34.
Regards, Olaf.
fs/Config.in +3 -0
@@ -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_bool '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
@@ -83,5 +83,6 @@ obj-$(CONFIG_REISERFS_FS) += reiserfs/ obj-$(CONFIG_SUN_OPENPROMFS) += openpromfs/ obj-$(CONFIG_JFS_FS) += jfs/ +obj-$(CONFIG_ACCESS_FS) += accessfs/ include $(TOPDIR)/Rules.make
fs/accessfs/Config.help +53 -0
53 lines not on this page · raw message
fs/accessfs/Config.in +8 -0
@@ -0,0 +1,8 @@ +# +# Accessfs configuration +# +dep_bool ' Keep capabilities' CONFIG_ACCESSFS_KEEP_CAPABILITIES $CONFIG_ACCESS_FS + +if [ "$CONFIG_ACCESS_FS" != "n" ]; then + int ' Range of protected ports (1024-65536)' CONFIG_ACCESSFS_PROT_SOCK 1024 +fi
fs/accessfs/Makefile +9 -0
@@ -0,0 +1,9 @@ +# +# Makefile for the linux accessfs routines. +# + +obj-$(CONFIG_ACCESS_FS) += accessfs.o +accessfs-objs := inode.o +export-objs := inode.o + +include $(TOPDIR)/Rules.make
fs/accessfs/inode.c +391 -0
391 lines not on this page · raw message
include/linux/accessfs_fs.h +52 -0
52 lines not on this page · raw message
net/ipv4/af_inet.c +51 -0
95 lines not on this page · raw message
net/ipv6/af_inet6.c +46 -0
83 lines not on this page · raw message