kernel: Add option to make using filesystem ACL support the default
authorDaniel Dickinson <openwrt@daniel.thecshore.com>
Thu, 17 Dec 2015 03:58:11 +0000 (22:58 -0500)
committerJohn Crispin <john@phrozen.org>
Thu, 30 Jun 2016 20:48:39 +0000 (22:48 +0200)
This adds a configuration options that allows to make filesystem ACL support
the default in the kernel, except for old nfs.

Signed-off-by: Daniel Dickinson <openwrt@daniel.thecshore.com>
config/Config-kernel.in
target/linux/generic/config-3.18
target/linux/generic/config-4.1
target/linux/generic/config-4.4

index b05ff23694cf5c2597b49106200d0c6377a4a7ae..8b3989dbeae40e43bdc9b20b3d8ba2f108944971 100644 (file)
@@ -630,3 +630,88 @@ if KERNEL_IP_PNP
                def_bool y
 
 endif
                def_bool y
 
 endif
+
+config USE_FS_ACL_ATTR
+       bool "Use filesystem ACL and attr support by default"
+       default n
+       help
+         Make using ACLs (e.g. POSIX ACL, NFSv4 ACL) the default
+         for kernel and packages, except tmpfs, flash filesystems,
+         and old NFS.  Also enable userspace extended attribute support
+         by default.  (OpenWrt already has an expection it will be
+         present in the kernel).
+
+config KERNEL_FS_POSIX_ACL
+       bool "Enable POSIX ACL support"
+       default y if USE_FS_ACL_ATTR
+
+config KERNEL_BTRFS_FS_POSIX_ACL
+       bool "Enable POSIX ACL for BtrFS Filesystems"
+       select KERNEL_FS_POSIX_ACL
+       default y if USE_FS_ACL_ATTR
+
+config KERNEL_EXT4_FS_POSIX_ACL
+       bool "Enable POSIX ACL for Ext4 Filesystems"
+       select KERNEL_FS_POSIX_ACL
+       default y if USE_FS_ACL_ATTR
+
+config KERNEL_F2FS_FS_POSIX_ACL
+       bool "Enable POSIX ACL for F2FS Filesystems"
+       select KERNEL_FS_POSIX_ACL
+       default n
+
+config KERNEL_JFFS2_FS_POSIX_ACL
+       bool "Enable POSIX ACL for JFFS2 Filesystems"
+       select KERNEL_FS_POSIX_ACL
+       default n
+
+config KERNEL_TMPFS_POSIX_ACL
+       bool "Enable POSIX ACL for TMPFS Filesystems"
+       select KERNEL_FS_POSIX_ACL
+       default n
+
+config KERNEL_CIFS_ACL
+       bool "Enable CIFS ACLs"
+       select KERNEL_FS_POSIX_ACL
+       default y if USE_FS_ACL_ATTR
+
+config KERNEL_HFS_FS_POSIX_ACL
+       bool "Enable POSIX ACL for HFS Filesystems"
+       select KERNEL_FS_POSIX_ACL
+       default y if USE_FS_ACL_ATTR
+
+config KERNEL_HFSPLUG_FS_POSIX_ACL
+       bool "Enable POSIX ACL for HFS+ Filesystems"
+       select KERNEL_FS_POSIX_ACL
+       default y if USE_FS_ACL_ATTR
+
+config KERNEL_NFS_ACL_SUPPORT
+       bool "Enable ACLs for NFS"
+       default y if USE_FS_ACL_ATTR
+
+config KERNEL_NFS_V3_ACL_SUPPORT
+       bool "Enable ACLs for NFSv3"
+       default n
+
+config KERNEL_NFSD_V2_ACL_SUPPORT
+       bool "Enable ACLs for NFSDv2"
+       default n
+
+config KERNEL_NFSD_V3_ACL_SUPPORT
+       bool "Enable ACLs for NFSDv3"
+       default n
+
+config KERNEL_REISER_FS_POSIX_ACL
+       bool "Enable POSIX ACLs for ReiserFS"
+       select KERNEL_FS_POSIX_ACL
+       default y if USE_FS_ACL_ATTR
+
+config KERNEL_XFS_POSIX_ACL
+       bool "Enable POSIX ACLs for XFS"
+       select KERNEL_FS_POSIX_ACL
+       default y if USE_FS_ACL_ATTR
+
+config KERNEL_JFS_POSIX_ACL
+       bool "Enable POSIX ACLs for JFS"
+       select KERNEL_FS_POSIX_ACL
+       default y if USE_FS_ACL_ATTR
index a2c81c2b29564c16e6322f133cf6f77fbc084d0a..9b9b4ca945c7467cfef3ce2bc86fa33f8c8a4ff9 100644 (file)
@@ -528,6 +528,7 @@ CONFIG_BROKEN_ON_SMP=y
 # CONFIG_BTRFS_ASSERT is not set
 # CONFIG_BTRFS_DEBUG is not set
 # CONFIG_BTRFS_FS is not set
 # CONFIG_BTRFS_ASSERT is not set
 # CONFIG_BTRFS_DEBUG is not set
 # CONFIG_BTRFS_FS is not set
+# CONFIG_BTRFS_FS_POSIX_ACL is not set
 # CONFIG_BTRFS_FS_RUN_SANITY_TESTS is not set
 # CONFIG_BT_ATH3K is not set
 # CONFIG_BT_BNEP is not set
 # CONFIG_BTRFS_FS_RUN_SANITY_TESTS is not set
 # CONFIG_BT_ATH3K is not set
 # CONFIG_BT_BNEP is not set
@@ -1009,6 +1010,7 @@ CONFIG_EXTRA_TARGETS=""
 # CONFIG_EXYNOS_VIDEO is not set
 # CONFIG_EZX_PCAP is not set
 # CONFIG_F2FS_FS is not set
 # CONFIG_EXYNOS_VIDEO is not set
 # CONFIG_EZX_PCAP is not set
 # CONFIG_F2FS_FS is not set
+# CONFIG_F2FS_FS_POSIX_ACL is not set
 # CONFIG_FAIR_GROUP_SCHED is not set
 # CONFIG_FANOTIFY is not set
 CONFIG_FAT_DEFAULT_CODEPAGE=437
 # CONFIG_FAIR_GROUP_SCHED is not set
 # CONFIG_FANOTIFY is not set
 CONFIG_FAT_DEFAULT_CODEPAGE=437
@@ -1217,6 +1219,7 @@ CONFIG_HAVE_KRETPROBES=y
 # CONFIG_HFSPLUS_FS is not set
 # CONFIG_HFSPLUS_FS_POSIX_ACL is not set
 # CONFIG_HFS_FS is not set
 # CONFIG_HFSPLUS_FS is not set
 # CONFIG_HFSPLUS_FS_POSIX_ACL is not set
 # CONFIG_HFS_FS is not set
+# CONFIG_HFS_FS_POSIX_ACL is not set
 # CONFIG_HIBERNATION is not set
 # CONFIG_HID is not set
 # CONFIG_HIDRAW is not set
 # CONFIG_HIBERNATION is not set
 # CONFIG_HID is not set
 # CONFIG_HIDRAW is not set
@@ -3043,7 +3046,7 @@ CONFIG_RCU_FANOUT_LEAF=16
 # CONFIG_REISERFS_FS is not set
 # CONFIG_REISERFS_FS_POSIX_ACL is not set
 # CONFIG_REISERFS_FS_SECURITY is not set
 # CONFIG_REISERFS_FS is not set
 # CONFIG_REISERFS_FS_POSIX_ACL is not set
 # CONFIG_REISERFS_FS_SECURITY is not set
-# CONFIG_REISERFS_FS_XATTR is not set
+# CONFIG_REISERFS_FS_XATTR
 # CONFIG_REISERFS_PROC_INFO is not set
 # CONFIG_RELAY is not set
 # CONFIG_RESET_CONTROLLER is not set
 # CONFIG_REISERFS_PROC_INFO is not set
 # CONFIG_RELAY is not set
 # CONFIG_RESET_CONTROLLER is not set
index fa95759a9c00d02e18212a74d7ead9fe33059052..045096f2912b26aa39976111c2e26d1bf80fa186 100644 (file)
@@ -550,6 +550,7 @@ CONFIG_BROKEN_ON_SMP=y
 # CONFIG_BTRFS_ASSERT is not set
 # CONFIG_BTRFS_DEBUG is not set
 # CONFIG_BTRFS_FS is not set
 # CONFIG_BTRFS_ASSERT is not set
 # CONFIG_BTRFS_DEBUG is not set
 # CONFIG_BTRFS_FS is not set
+# CONFIG_BTRFS_FS_POSIX_ACL is not set
 # CONFIG_BTRFS_FS_RUN_SANITY_TESTS is not set
 # CONFIG_BT_ATH3K is not set
 # CONFIG_BT_BNEP is not set
 # CONFIG_BTRFS_FS_RUN_SANITY_TESTS is not set
 # CONFIG_BT_ATH3K is not set
 # CONFIG_BT_BNEP is not set
@@ -1045,6 +1046,7 @@ CONFIG_EXTRA_TARGETS=""
 # CONFIG_EXYNOS_VIDEO is not set
 # CONFIG_EZX_PCAP is not set
 # CONFIG_F2FS_FS is not set
 # CONFIG_EXYNOS_VIDEO is not set
 # CONFIG_EZX_PCAP is not set
 # CONFIG_F2FS_FS is not set
+# CONFIG_F2FS_FS_POSIX_ACL is not set
 # CONFIG_F2FS_IO_TRACE is not set
 # CONFIG_FAIR_GROUP_SCHED is not set
 # CONFIG_FANOTIFY is not set
 # CONFIG_F2FS_IO_TRACE is not set
 # CONFIG_FAIR_GROUP_SCHED is not set
 # CONFIG_FANOTIFY is not set
@@ -1258,6 +1260,7 @@ CONFIG_HAVE_KRETPROBES=y
 # CONFIG_HFSPLUS_FS is not set
 # CONFIG_HFSPLUS_FS_POSIX_ACL is not set
 # CONFIG_HFS_FS is not set
 # CONFIG_HFSPLUS_FS is not set
 # CONFIG_HFSPLUS_FS_POSIX_ACL is not set
 # CONFIG_HFS_FS is not set
+# CONFIG_HFS_FS_POSIX_ACL is not set
 # CONFIG_HIBERNATION is not set
 # CONFIG_HID is not set
 # CONFIG_HIDRAW is not set
 # CONFIG_HIBERNATION is not set
 # CONFIG_HID is not set
 # CONFIG_HIDRAW is not set
index 54c406245972186404f15e4167d3f2e8aa0c57ce..dfd8b130d7d4af73bf5a2599b10bacc1c8d632da 100644 (file)
@@ -526,6 +526,7 @@ CONFIG_BROKEN_ON_SMP=y
 # CONFIG_BTRFS_ASSERT is not set
 # CONFIG_BTRFS_DEBUG is not set
 # CONFIG_BTRFS_FS is not set
 # CONFIG_BTRFS_ASSERT is not set
 # CONFIG_BTRFS_DEBUG is not set
 # CONFIG_BTRFS_FS is not set
+# CONFIG_BTRFS_FS_POSIX_ACL is not set
 # CONFIG_BTRFS_FS_RUN_SANITY_TESTS is not set
 # CONFIG_BT_ATH3K is not set
 # CONFIG_BT_BNEP is not set
 # CONFIG_BTRFS_FS_RUN_SANITY_TESTS is not set
 # CONFIG_BT_ATH3K is not set
 # CONFIG_BT_BNEP is not set
@@ -1036,6 +1037,7 @@ CONFIG_EXTRA_TARGETS=""
 # CONFIG_EZX_PCAP is not set
 # CONFIG_F2FS_FS is not set
 # CONFIG_F2FS_FS_ENCRYPTION is not set
 # CONFIG_EZX_PCAP is not set
 # CONFIG_F2FS_FS is not set
 # CONFIG_F2FS_FS_ENCRYPTION is not set
+# CONFIG_F2FS_FS_POSIX_ACL is not set
 # CONFIG_F2FS_IO_TRACE is not set
 # CONFIG_FAIR_GROUP_SCHED is not set
 # CONFIG_FANOTIFY is not set
 # CONFIG_F2FS_IO_TRACE is not set
 # CONFIG_FAIR_GROUP_SCHED is not set
 # CONFIG_FANOTIFY is not set
@@ -1264,6 +1266,7 @@ CONFIG_HAVE_KRETPROBES=y
 # CONFIG_HFSPLUS_FS is not set
 # CONFIG_HFSPLUS_FS_POSIX_ACL is not set
 # CONFIG_HFS_FS is not set
 # CONFIG_HFSPLUS_FS is not set
 # CONFIG_HFSPLUS_FS_POSIX_ACL is not set
 # CONFIG_HFS_FS is not set
+# CONFIG_HFS_FS_POSIX_ACL is not set
 # CONFIG_HI8435 is not set
 # CONFIG_HIBERNATION is not set
 # CONFIG_HID is not set
 # CONFIG_HI8435 is not set
 # CONFIG_HIBERNATION is not set
 # CONFIG_HID is not set