Skip to contentSkip to conversation

pramfs Makefile and Kconfig

PATCH Superseded Marco Stornelli 2 participants 3 messages Oct 10, 2010 – Oct 11, 2010 VFS

v1 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH 16/16 pramfs Makefile and Kconfig

From: Marco Stornelli <[email protected]>

Makefile and Kconfig.

---

fs/Makefile +1 -0
diff -Nurp linux-2.6.36-orig/fs/Makefile linux-2.6.36/fs/Makefile
@@ -126,3 +126,4 @@ obj-$(CONFIG_BTRFS_FS)		+= btrfs/
 obj-$(CONFIG_GFS2_FS)           += gfs2/
 obj-$(CONFIG_EXOFS_FS)          += exofs/
 obj-$(CONFIG_CEPH_FS)		+= ceph/
+obj-$(CONFIG_PRAMFS)		+= pramfs/
fs/Kconfig +78 -4

101 lines not on this page · raw message

fs/pramfs/Makefile +14 -0
diff -Nurp linux-2.6.36-orig/fs/pramfs/Makefile linux-2.6.36/fs/pramfs/Makefile
@@ -0,0 +1,14 @@
+#
+# Makefile for the linux pram-filesystem routines.
+#
+
+obj-$(CONFIG_PRAMFS) += pramfs.o
+obj-$(CONFIG_TEST_MODULE) += pramfs_test.o
+
+pramfs-y := balloc.o dir.o file.o inode.o namei.o super.o symlink.o
+
+pramfs-$(CONFIG_PRAMFS_WRITE_PROTECT) += wprotect.o
+pramfs-$(CONFIG_PRAMFS_XIP) += xip.o
+pramfs-$(CONFIG_PRAMFS_XATTR) += xattr.o xattr_user.o xattr_trusted.o desctree.o
+pramfs-$(CONFIG_PRAMFS_POSIX_ACL) += acl.o
+pramfs-$(CONFIG_PRAMFS_SECURITY) += xattr_security.o
#1 lore raw
Quoted 12 lines · On Sun, 10 Oct 2010 18:39:11 +0200 Marco Stornelli wrote:

From: Marco Stornelli <[email protected]>

Makefile and Kconfig.

---
diff -Nurp linux-2.6.36-orig/fs/pramfs/Kconfig linux-2.6.36/fs/pramfs/Kconfig

fs/pramfs/Kconfig +2 -0
@@ -0,0 +1,72 @@
+config PRAMFS
+	tristate "Persistent and Protected RAM file system support"

fs/pramfs/Kconfig line 12

Quoted 10 lines
fs/pramfs/Kconfig +10 -0
+	depends on HAS_IOMEM && EXPERIMENTAL
+	select CRC16
+	help
+	   If your system has a block of fast (comparable in access speed to
+	   system memory) and non-volatile RAM and you wish to mount a
+	   light-weight, full-featured, and space-efficient filesystem over it,
+	   say Y here, and read <file:Documentation/filesystems/pramfs.txt>.
+
+	   To compile this as a module,  choose M here: the module will be
+	   called pramfs.ko.

called pramfs.

(we don't add the .ko suffix; well, we try not to do that)

fs/pramfs/Kconfig line 18

Quoted 6 lines
fs/pramfs/Kconfig +6 -0
+
+config PRAMFS_XIP
+	bool "Enable Execute-in-place in PRAMFS"
+	depends on PRAMFS && !PRAMFS_WRITE_PROTECT
+	help
+	   Say Y here to enable xip feature of PRAMFS.

XIP

Quoted 20 lines
fs/pramfs/Kconfig +20 -0
+
+config PRAMFS_WRITE_PROTECT
+	bool "Enable PRAMFS write protection"
+	depends on PRAMFS && MMU
+	default y
+	help
+	   Say Y here to enable the write protect feature of PRAMFS.
+
+config PRAMFS_XATTR
+	bool "PRAMFS extended attributes"
+	depends on PRAMFS
+	help
+	  Extended attributes are name:value pairs associated with inodes by
+	  the kernel or by users (see the attr(5) manual page, or visit
+	  <http://acl.bestbits.at/> for details).
+
+	  If unsure, say N.
+
+config PRAMFS_POSIX_ACL
+	bool "PRAMFS POSIX Access Control Lists"

fs/pramfs/Kconfig line 48

Quoted 10 lines
fs/pramfs/Kconfig +10 -0
+	depends on PRAMFS_XATTR
+	select FS_POSIX_ACL
+	help
+	  Posix Access Control Lists (ACLs) support permissions for users and
+	  groups beyond the owner/group/world scheme.
+
+	  To learn more about Access Control Lists, visit the Posix ACLs for
+	  Linux website <http://acl.bestbits.at/>.
+
+	  If you don't know what Access Control Lists are, say N

end sentence with period ('.').

Quoted 14 lines
fs/pramfs/Kconfig +14 -0
+
+config PRAMFS_SECURITY
+	bool "PRAMFS Security Labels"
+	depends on PRAMFS_XATTR
+	help
+	  Security labels support alternative access control models
+	  implemented by security modules like SELinux.  This option
+	  enables an extended attribute handler for file security
+	  labels in the pram filesystem.
+
+	  If you are not using a security module that requires using
+	  extended attributes for file security labels, say N.
+
+config PRAMFS_TEST

fs/pramfs/Kconfig line 72

Quoted 10 lines
fs/pramfs/Kconfig +10 -0
+	boolean
+	depends on PRAMFS
+
+config TEST_MODULE
+	tristate "PRAMFS Test"
+	depends on PRAMFS && m
+	select PRAMFS_TEST
+	help
+	  Say Y here to build a simple module to test the protection of
+	  PRAMFS. The module will be called pramfs_test.ko.

called pramfs_test.

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

#2 lore raw

2010/10/10 Randy Dunlap <[email protected]>:

Quoted 27 lines · On Sun, 10 Oct 2010 18:39:11 +0200 Marco Stornelli wrote:
Quoted 13 lines

From: Marco Stornelli <[email protected]>

Makefile and Kconfig.

---
 diff -Nurp linux-2.6.36-orig/fs/pramfs/Kconfig linux-2.6.36/fs/pramfs/Kconfig

fs/pramfs/Kconfig    2010-09-14 18:49:52.000000000 +0200 renamed from fs/pramfs/Kconfig       1970-01-01 01:00:00.000000000 +0100 +2 -0
@@ -0,0 +1,72 @@
+config PRAMFS
+     tristate "Persistent and Protected RAM file system support"

fs/pramfs/Kconfig    2010-09-14 18:49:52.000000000 +0200 line 12

Quoted 10 lines
fs/pramfs/Kconfig    2010-09-14 18:49:52.000000000 +0200 renamed from fs/pramfs/Kconfig       1970-01-01 01:00:00.000000000 +0100 +10 -0
+     depends on HAS_IOMEM && EXPERIMENTAL
+     select CRC16
+     help
+        If your system has a block of fast (comparable in access speed to
+        system memory) and non-volatile RAM and you wish to mount a
+        light-weight, full-featured, and space-efficient filesystem over it,
+        say Y here, and read <file:Documentation/filesystems/pramfs.txt>.
+
+        To compile this as a module,  choose M here: the module will be
+        called pramfs.ko.

         called pramfs.

Quoted 1 line

(we don't add the .ko suffix; well, we try not to do that)

Ok.

Quoted 9 lines

fs/pramfs/Kconfig    2010-09-14 18:49:52.000000000 +0200 line 18

Quoted 7 lines
fs/pramfs/Kconfig    2010-09-14 18:49:52.000000000 +0200 renamed from fs/pramfs/Kconfig       1970-01-01 01:00:00.000000000 +0100 +6 -0
+
+config PRAMFS_XIP
+     bool "Enable Execute-in-place in PRAMFS"
+     depends on PRAMFS && !PRAMFS_WRITE_PROTECT
+     help
+        Say Y here to enable xip feature of PRAMFS.

                               XIP

Ok.

Quoted 25 lines
Quoted 25 lines
fs/pramfs/Kconfig    2010-09-14 18:49:52.000000000 +0200 renamed from fs/pramfs/Kconfig       1970-01-01 01:00:00.000000000 +0100 +24 -0
+
+config PRAMFS_WRITE_PROTECT
+     bool "Enable PRAMFS write protection"
+     depends on PRAMFS && MMU
+     default y
+     help
+        Say Y here to enable the write protect feature of PRAMFS.
+
+config PRAMFS_XATTR
+     bool "PRAMFS extended attributes"
+     depends on PRAMFS
+     help
+       Extended attributes are name:value pairs associated with inodes by
+       the kernel or by users (see the attr(5) manual page, or visit
+       <http://acl.bestbits.at/> for details).
+
+       If unsure, say N.
+
+config PRAMFS_POSIX_ACL
+     bool "PRAMFS POSIX Access Control Lists"
+     depends on PRAMFS_XATTR
+     select FS_POSIX_ACL
+     help
+       Posix Access Control Lists (ACLs) support permissions for users and
Quoted 8 lines

fs/pramfs/Kconfig    2010-09-14 18:49:52.000000000 +0200 line 48

Quoted 6 lines
fs/pramfs/Kconfig    2010-09-14 18:49:52.000000000 +0200 renamed from fs/pramfs/Kconfig       1970-01-01 01:00:00.000000000 +0100 +6 -0
+       groups beyond the owner/group/world scheme.
+
+       To learn more about Access Control Lists, visit the Posix ACLs for
+       Linux website <http://acl.bestbits.at/>.
+
+       If you don't know what Access Control Lists are, say N

end sentence with period ('.').

Ok.