Re: [PATCH 16/16] pramfs Makefile and Kconfig

2010-10-11 Thread Marco Stornelli
2010/10/10 Randy Dunlap :
> On Sun, 10 Oct 2010 18:39:11 +0200 Marco Stornelli wrote:
>
>> From: Marco Stornelli 
>>
>> Makefile and Kconfig.
>>
>> Signed-off-by: Marco Stornelli 
>> ---
>>  diff -Nurp linux-2.6.36-orig/fs/pramfs/Kconfig 
>> linux-2.6.36/fs/pramfs/Kconfig
>> --- linux-2.6.36-orig/fs/pramfs/Kconfig       1970-01-01 01:00:00.0 
>> +0100
>> +++ linux-2.6.36/fs/pramfs/Kconfig    2010-09-14 18:49:52.0 +0200
>> @@ -0,0 +1,72 @@
>> +config PRAMFS
>> +     tristate "Persistent and Protected RAM file system support"
>> +     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 .
>> +
>> +        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)

Ok.

>
>> +
>> +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.

>
>> +
>> +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
>> +        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
>> +       groups beyond the owner/group/world scheme.
>> +
>> +       To learn more about Access Control Lists, visit the Posix ACLs for
>> +       Linux website .
>> +
>> +       If you don't know what Access Control Lists are, say N
>
> end sentence with period ('.').

Ok.
--
To unsubscribe from this list: send the line "unsubscribe linux-embedded" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH 16/16] pramfs Makefile and Kconfig

2010-10-10 Thread Randy Dunlap
On Sun, 10 Oct 2010 18:39:11 +0200 Marco Stornelli wrote:

> From: Marco Stornelli 
> 
> Makefile and Kconfig.
> 
> Signed-off-by: Marco Stornelli 
> ---
>  diff -Nurp linux-2.6.36-orig/fs/pramfs/Kconfig linux-2.6.36/fs/pramfs/Kconfig
> --- linux-2.6.36-orig/fs/pramfs/Kconfig   1970-01-01 01:00:00.0 
> +0100
> +++ linux-2.6.36/fs/pramfs/Kconfig2010-09-14 18:49:52.0 +0200
> @@ -0,0 +1,72 @@
> +config PRAMFS
> + tristate "Persistent and Protected RAM file system support"
> + 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 .
> +
> +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)

> +
> +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

> +
> +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
> +    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
> +   groups beyond the owner/group/world scheme.
> +
> +   To learn more about Access Control Lists, visit the Posix ACLs for
> +   Linux website .
> +
> +   If you don't know what Access Control Lists are, say N

end sentence with period ('.').

> +
> +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
> + 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 ***
--
To unsubscribe from this list: send the line "unsubscribe linux-embedded" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 16/16] pramfs Makefile and Kconfig

2010-10-10 Thread Marco Stornelli
From: Marco Stornelli 

Makefile and Kconfig.

Signed-off-by: Marco Stornelli 
---
diff -Nurp linux-2.6.36-orig/fs/Makefile linux-2.6.36/fs/Makefile
--- linux-2.6.36-orig/fs/Makefile   2010-09-13 01:07:37.0 +0200
+++ linux-2.6.36/fs/Makefile2010-09-14 18:49:52.0 +0200
@@ -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/
diff -Nurp linux-2.6.36-orig/fs/Kconfig linux-2.6.36/fs/Kconfig
--- linux-2.6.36-orig/fs/Kconfig2010-09-13 01:07:37.0 +0200
+++ linux-2.6.36/fs/Kconfig 2010-09-14 18:49:52.0 +0200
@@ -13,7 +13,7 @@ source "fs/ext4/Kconfig"
 config FS_XIP
 # execute in place
bool
-   depends on EXT2_FS_XIP
+   depends on EXT2_FS_XIP || PRAMFS_XIP
default y
  source "fs/jbd/Kconfig"
@@ -25,13 +25,14 @@ config FS_MBCACHE
default y if EXT2_FS=y && EXT2_FS_XATTR
default y if EXT3_FS=y && EXT3_FS_XATTR
default y if EXT4_FS=y && EXT4_FS_XATTR
-   default m if EXT2_FS_XATTR || EXT3_FS_XATTR || EXT4_FS_XATTR
+   default y if PRAMFS=y && PRAMFS_XATTR
+   default m if EXT2_FS_XATTR || EXT3_FS_XATTR || EXT4_FS_XATTR || 
PRAMFS_XATTR
  source "fs/reiserfs/Kconfig"
 source "fs/jfs/Kconfig"
  config FS_POSIX_ACL
-# Posix ACL utility routines (for now, only ext2/ext3/jfs/reiserfs/nfs4)
+# Posix ACL utility routines (for now, only ext2/ext3/jfs/reiserfs/nfs4/pramfs)
 #
 # NOTE: you can implement Posix ACLs without these helpers (XFS does).
 #  Never use this symbol for ifdefs.
@@ -189,6 +190,7 @@ source "fs/romfs/Kconfig"
 source "fs/sysv/Kconfig"
 source "fs/ufs/Kconfig"
 source "fs/exofs/Kconfig"
+source "fs/pramfs/Kconfig"
  endif # MISC_FILESYSTEMS
 diff -Nurp linux-2.6.36-orig/fs/pramfs/Kconfig linux-2.6.36/fs/pramfs/Kconfig
--- linux-2.6.36-orig/fs/pramfs/Kconfig 1970-01-01 01:00:00.0 +0100
+++ linux-2.6.36/fs/pramfs/Kconfig  2010-09-14 18:49:52.0 +0200
@@ -0,0 +1,72 @@
+config PRAMFS
+   tristate "Persistent and Protected RAM file system support"
+   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 .
+
+  To compile this as a module,  choose M here: the module will be
+  called pramfs.ko.
+
+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.
+
+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
+  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
+ groups beyond the owner/group/world scheme.
+
+ To learn more about Access Control Lists, visit the Posix ACLs for
+ Linux website .
+
+ If you don't know what Access Control Lists are, say N
+
+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
+   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.
diff -Nurp linux-2.6.36-orig/fs/pramfs/Makefile linux-2.6.36/fs/pramfs/Makefile
--- linux-2.6.36-orig/fs/pramfs/Makefile1970-01-01 01:00:00.0 
+0100
+++ linux-2.6.36/fs/pramfs/Makefile 2010-09-14 18:49:52.0 +0200
@@ -0,0 +1,14 @@
+#
+# Makefile for the linux pram-filesystem routines.
+#
+
+obj-$(CONFIG_PRAMFS) += pr