Skip to contentSkip to conversation

Fix dosfs handling in the interface

PATCH Daniel J Walsh 2 participants 2 messages Mar 8, 2007 – Mar 26, 2007 SELinux security module

lore
Share & tools
lore
#0 lore raw

Allow xend to use dosfs for ia64 boot.

policy/modules/kernel/filesystem.if +20 -0
@@ -1110,11 +1110,31 @@
 		type dosfs_t;
 	')
 
+	manage_dirs_pattern($1,dosfs_t,dosfs_t)
 	manage_files_pattern($1,dosfs_t,dosfs_t)
 ')
 
 ########################################
 ## <summary>
+##	read files
+##	on a DOS filesystem.
+## </summary>
+## <param name="domain">
+##	<summary>
+##	Domain allowed access.
+##	</summary>
+## </param>
+#
+interface(`fs_read_dos_files',`
+	gen_require(`
+		type dosfs_t;
+	')
+
+	read_files_pattern($1,dosfs_t,dosfs_t)
+')
+
+########################################
+## <summary>
 ##	Read eventpollfs files.
 ## </summary>
 ## <desc>
policy/modules/system/xen.te +8 -0
@@ -357,3 +373,11 @@
 xen_append_log(xm_t)
 xen_stream_connect(xm_t)
 xen_stream_connect_xenstore(xm_t)
+
+#Should have a boolean wrapping these
+fs_list_auto_mountpoints(xend_t)
+files_search_mnt(xend_t)
+fs_write_nfs_files(xend_t)
+fs_read_nfs_files(xend_t)
+fs_getattr_all_fs(xend_t)
+fs_read_dos_files(xend_t)
#1 lore raw
Quoted 16 lines · Daniel J Walsh

Allow xend to use dosfs for ia64 boot.

differences
between files
attachment
(dosfs.patch)

policy/modules/kernel/filesystem.if 2007-03-08 08:42:37.000000000 -0500 line 1115

Quoted 6 lines
policy/modules/kernel/filesystem.if 2007-03-08 08:42:37.000000000 -0500 renamed from policy/modules/kernel/filesystem.if 2007-02-19 11:32:51.000000000 -0500 +1 -0
@@ -1110,11 +1110,31 @@
                type dosfs_t;
        ')
 
+       manage_dirs_pattern($1,dosfs_t,dosfs_t)
        manage_files_pattern($1,dosfs_t,dosfs_t)
 ')

Dropped this as it breaks the meaning of the interface.

Quoted 8 lines
policy/modules/kernel/filesystem.if 2007-03-08 08:42:37.000000000 -0500 renamed from policy/modules/kernel/filesystem.if 2007-02-19 11:32:51.000000000 -0500 +6 -0
 ########################################
 ## <summary>
+##     read files
+##     on a DOS filesystem.
+## </summary>
+## <param name="domain">
+##     <summary>
+##     Domain allowed access.

policy/modules/kernel/filesystem.if 2007-03-08 08:42:37.000000000 -0500 line 1133

Quoted 10 lines
policy/modules/kernel/filesystem.if 2007-03-08 08:42:37.000000000 -0500 renamed from policy/modules/kernel/filesystem.if 2007-02-19 11:32:51.000000000 -0500 +10 -0
+##     </summary>
+## </param>
+#
+interface(`fs_read_dos_files',`
+       gen_require(`
+               type dosfs_t;
+       ')
+
+       read_files_pattern($1,dosfs_t,dosfs_t)
+')

Moved this up.

Quoted 5 lines
policy/modules/system/xen.te 2007-03-08 08:42:37.000000000 -0500 renamed from policy/modules/system/xen.te 2007-01-02 12:57:49.000000000 -0500 +0 -0
@@ -357,3 +373,11 @@
 xen_append_log(xm_t)

policy/modules/system/xen.te 2007-03-08 08:42:37.000000000 -0500 line 383

Quoted 10 lines
policy/modules/system/xen.te 2007-03-08 08:42:37.000000000 -0500 renamed from policy/modules/system/xen.te 2007-01-02 12:57:49.000000000 -0500 +8 -0
 xen_stream_connect(xm_t)
 xen_stream_connect_xenstore(xm_t)
+
+#Should have a boolean wrapping these
+fs_list_auto_mountpoints(xend_t)
+files_search_mnt(xend_t)
+fs_write_nfs_files(xend_t)
+fs_read_nfs_files(xend_t)
+fs_getattr_all_fs(xend_t)
+fs_read_dos_files(xend_t)

If these should be conditional, why aren't they?

Signature · 9 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.