Received: from zombie.ncsc.mil (zombie.ncsc.mil [144.51.88.131]) by tycho.ncsc.mil (8.12.8/8.12.8) with ESMTP id iA4KHrXZ026646 for ; Thu, 4 Nov 2004 15:17:53 -0500 (EST) Received: from glaurung.internal.golden-gryphon.com (jazzdrum.ncsc.mil [144.51.5.7]) by zombie.ncsc.mil (8.12.10/8.12.10) with ESMTP id iA4KHocx016749 for ; Thu, 4 Nov 2004 20:17:50 GMT Received: from glaurung.internal.golden-gryphon.com (srivasta@localhost [127.0.0.1]) by glaurung.internal.golden-gryphon.com (8.13.1/8.13.1/Debian-16) with ESMTP id iA4KDVip009805 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 4 Nov 2004 14:13:31 -0600 To: selinux@tycho.nsa.gov Subject: selinux-doc patchset 2 of 2: Quoting attribute values References: <87is8msv81.fsf@glaurung.internal.golden-gryphon.com> <1099503633.1213.153.camel@moss-spartans.epoch.ncsc.mil> <87fz3qqc20.fsf@glaurung.internal.golden-gryphon.com> <1099575909.3174.9.camel@moss-spartans.epoch.ncsc.mil> From: Manoj Srivastava Date: Thu, 04 Nov 2004 14:13:30 -0600 In-Reply-To: <1099575909.3174.9.camel@moss-spartans.epoch.ncsc.mil> (Stephen Smalley's message of "Thu, 04 Nov 2004 08:45:10 -0500") Message-ID: <877jp1qsnp.fsf_-_@glaurung.internal.golden-gryphon.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov --=-=-= Hi, Since attribute values need to be quoted unless SHORTTAG YES is specified, this patchset, the second of two, does that. Please note that this patch assumes that the previous patchset that modified the ID name tokens has already been applied. manoj --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=quoting.diff Content-Description: Quote attribute values * looking for srivasta@debian.org--2003-primary/selinux-doc--debian--1.0--patch-1 to compare with * comparing to srivasta@debian.org--2003-primary/selinux-doc--debian--1.0--patch-1 M module/inode.sgml M module/ip.sgml M module/ipc.sgml M module/netdev.sgml M module/sb.sgml M module/skb.sgml M module/socket.sgml M module/system.sgml M module/task.sgml M policy/arch.sgml M module/biblio.sgml M policy/biblio.sgml M policy/lang.sgml M module/binprm.sgml M module/file.sgml * modified files --- orig/module/biblio.sgml +++ mod/module/biblio.sgml @@ -3,14 +3,14 @@ LoscoccoFreenix2001 - + PeterLoscocco StephenSmalley Integrating Flexible Support for Security Policies into the Linux Operating System - + Proceedings of the FREENIX Track: 2001 USENIX Annual Technical Conference The USENIX Association @@ -21,14 +21,14 @@ LoscoccoNSATR2001 - + PeterLoscocco StephenSmalley Integrating Flexible Support for Security Policies into the Linux Operating System - + NSA Technical Report February 2001 @@ -36,7 +36,7 @@ LoscoccoNISS1998 - + PeterLoscocco StephenSmalley @@ -47,7 +47,7 @@ The Inevitability of Failure: The Flawed Assumption of Security in Modern Computing Environments - + Proceedings of the 21st National Information Systems Security Conference October 1998 @@ -55,7 +55,7 @@ SpencerUsenixSec1999 - + RaySpencer StephenSmalley @@ -66,7 +66,7 @@ The Flask Security Architecture: System Support for Diverse Security Policies - + Proceedings of the Eighth USENIX Security Symposium The USENIX Association @@ -86,11 +86,11 @@ MorrisSeloptOverview2002 - + JamesMorris Overview of SELinux Labeled Networking Support via CIPSO/FIPS-188 IP Options - + selopt-overview.txt February 2002 @@ -98,11 +98,11 @@ MorrisSCMP2001 - + JamesMorris Security Context Mapping Protocol - + scmp-draft.txt December 30, 2001 --- orig/module/binprm.sgml +++ mod/module/binprm.sgml @@ -79,9 +79,9 @@ the same time, so it does not need this permission to the shell program. - +
Permission Checks if Task SID is not changing on exec - + Source @@ -110,9 +110,9 @@ programs are referred to as entrypoint programs for the SID. These permission checks are shown in . -
+
Permission Checks if Task SID is changing on exec - + Source @@ -160,9 +160,9 @@ unchanged and the task is sent a SIGKILL to terminate it. These permission checks are shown in . -
+
Permission Checks if Task SID is changing on exec - + Source --- orig/module/file.sgml +++ mod/module/file.sgml @@ -32,9 +32,9 @@ }; -
+
file_security_struct - + @@ -183,9 +183,9 @@ shows the permission checks performed for each command. -
+
I/O Control Permission Checks - + @@ -317,9 +317,9 @@ The basic permission checks performed for each command are shown in . -
+
File Control Permission Checks - + Command --- orig/module/inode.sgml +++ mod/module/inode.sgml @@ -35,9 +35,9 @@ }; -
+
inode_security_struct - + @@ -162,9 +162,9 @@ of the modes listed in , then it defaults to the file security class. -
+
Inode Security Classes - + Mode @@ -421,9 +421,9 @@ security_transition_sid interface. The function then checks permissions as described in . -
+
Create Permission Checks - + Source @@ -472,9 +472,9 @@ permission checks for these operations are shown in and . -
+
Link Permission Checks - + Source @@ -497,9 +497,9 @@
- +
Unlink or Rmdir Permission Checks - + Source @@ -551,9 +551,9 @@ checked if the file is a directory and its parent directory is being changed by the rename. -
+
Basic Rename Permission Checks - + Source @@ -581,9 +581,9 @@
- +
Additional Rename Permission Checks if NewFile Exists - + Source @@ -606,9 +606,9 @@
- +
Additional Rename Permission Checks if Reparenting - + Source @@ -664,9 +664,9 @@ could be omitted from this hook, but it is performed to ensure that all directory modifications are mediated by the policy. -
+
Directory Permission Checks - + Mask @@ -705,9 +705,9 @@ O_APPEND flag is not subsequently cleared unless the process has write permission to the file. -
+
Non-Directory Permission Checks - + Mask @@ -746,9 +746,9 @@ file, the permission checks are all described in . -
+
Remaining Inode Hook Permission Checks - + Hook --- orig/module/ip.sgml +++ mod/module/ip.sgml @@ -46,9 +46,9 @@ source node. The permission checked for each protocol type is shown in . -
+
Packet Receive Permissions - + Protocol @@ -145,9 +145,9 @@ selinux_skb_set_owner_w hook sets the message SID. -
+
Packet Send Permissions - + Protocol --- orig/module/ipc.sgml +++ mod/module/ipc.sgml @@ -24,9 +24,9 @@ }; -
+
ipc_security_struct - + @@ -84,9 +84,9 @@ avc_entry_ref_t avcr; }; -
+
msg_security_struct - + @@ -271,9 +271,9 @@ necessary, but ensure that all IPC accesses are mediated by the policy. -
+
ipc_permission Permission Checks - + Flag @@ -336,9 +336,9 @@ are shown in . -
+
Semaphore Control Permissions - + Operation @@ -423,9 +423,9 @@ operation being performed. The permissions required for each operation are shown in . -
+
Shared Memory Control Permissions - + Operation @@ -496,9 +496,9 @@ operation being performed. The permissions required for each operation are shown in . -
+
Message Queue Control Permissions - + Operation @@ -549,9 +549,9 @@ the security server to obtain a SID based on the SID of the task and the SID of the message queue. -
+
Message Send Permissions - + Source @@ -602,9 +602,9 @@ process and may cause the calling process to block waiting for messages that are accessible. -
+
Message Receive Permissions - + Source --- orig/module/netdev.sgml +++ mod/module/netdev.sgml @@ -29,9 +29,9 @@ avc_entry_ref_t avcr; }; -
+
netdev_security_struct - + --- orig/module/sb.sgml +++ mod/module/sb.sgml @@ -30,9 +30,9 @@ }; -
+
superblock_security_struct - + @@ -270,9 +270,9 @@ The permission checks for the super_block hooks are summarized in . -
+
Filesystem Permission Checks - + Hook --- orig/module/skb.sgml +++ mod/module/skb.sgml @@ -43,9 +43,9 @@ }; -
+
skb_security_struct - + --- orig/module/socket.sgml +++ mod/module/socket.sgml @@ -31,9 +31,9 @@ } -
+
sock_security_struct - + @@ -122,9 +122,9 @@ This SID is used to label outgoing packets from a socket that has no user space socket structure associated with it. -
+
Socket Security Classes - + Protocol FamilyType Security Class @@ -259,9 +259,9 @@ functions, excluding the optional extended socket call processing, is then described in the following subsections. -
+
Socket Layer Hook Permission Checks - + @@ -442,9 +442,9 @@ -
+
Connection Establishment Permission Checks - + @@ -508,9 +508,9 @@ sendto permission between the sending socket and the receiving socket. These permission checks are summarized in . -
+
Unix Domain Permission Checks - + @@ -583,9 +583,9 @@ access_vector_t conn_perm; /* connection permission */ -
+
Extended inode_security_struct - + @@ -641,9 +641,9 @@ }; -
+
open_request_security_struct - + --- orig/module/system.sgml +++ mod/module/system.sgml @@ -83,8 +83,8 @@ Summary of Capability-Related Permission Checks -
Capability-Related Permission Checks - +
Capability-Related Permission Checks + Hook Function @@ -144,9 +144,9 @@ future, e.g. a permission to control what files can be used for accounting, so these hooks may be used at a later point in time. -
+
System Hook Functions that Defer to Capable - + Hook @@ -183,7 +183,7 @@ The ctl_sid structure is used to map a name from the sysctl namespace to a SID. This structure resembles the ctl_table structure defined in sysctl.h, with entries for the sysctl +class="headerfile">sysctl.h, with entries for the sysctl name (which is an integer), the associated string from the /proc/sys namespace, and the SID to be used for the entry. The last field is an @@ -229,9 +229,9 @@ as a file for read or write operations on a variable. shows the permission checks associated with each requested operation. -
+
sysctl Permission Checks - + Operation Value @@ -342,9 +342,9 @@ secondary module to permit it to perform additional capability checking. -
+
Remaining System Hook Function Permission Checks - + Hook Function --- orig/module/task.sgml +++ mod/module/task.sgml @@ -26,9 +26,9 @@ }; -
+
task_security_struct - + @@ -172,9 +172,9 @@ task_has_security function checks whether a task has permission to use one of the security server system calls. -
+
Task Helper Function Permission Checks - + Function @@ -231,9 +231,9 @@ permission checks are summarized in . These functions call the task_has_perm helper function. -
+
Task Hook Function Permission Checks - + --- orig/policy/arch.sgml +++ mod/policy/arch.sgml @@ -153,9 +153,9 @@ example policy configuration is compiled. The Flask configuration files are listed in . -
+
Architecture Configuration Files - + Filename --- orig/policy/biblio.sgml +++ mod/policy/biblio.sgml @@ -3,14 +3,14 @@ BoebertNCSC1985 - + W.Boebert R.Kain A Practical Alternative to Hierarchical Integrity Policies - + Proceedings of the Eighth National Computer Security Conference 1985 @@ -18,14 +18,14 @@ FerraioloNCSC1992 - + DavidFerraiolo RichardKuhn Role-Based Access Controls - + Proceedings of the 15th National Computer Security Conference October 1992 @@ -33,14 +33,14 @@ LoscoccoFreenix2001 - + PeterLoscocco StephenSmalley Integrating Flexible Support for Security Policies into the Linux Operating System - + Proceedings of the FREENIX Track: 2001 USENIX Annual Technical Conference The USENIX Association @@ -51,14 +51,14 @@ LoscoccoOLS2001 - + PeterLoscocco StephenSmalley Meeting Critical Security Objectives with Security-Enhanced Linux - + Proceedings of the 2001 Ottawa Linux Symposium July 2001 @@ -66,14 +66,14 @@ LoscoccoNSATR2001 - + PeterLoscocco StephenSmalley Integrating Flexible Support for Security Policies into the Linux Operating System - + NSA Technical Report February 2001 @@ -81,14 +81,14 @@ SmalleyNAITR2001 - + StephenSmalley TimothyFraser A Security Policy Configuration for the Security-Enhanced Linux - + NAI Labs Technical Report February 2001 @@ -96,7 +96,7 @@ SmalleyModuleTR2001 - + StephenSmalley ChrisVance @@ -104,7 +104,7 @@ Implementing SELinux as a Linux Security Module - + NAI Labs Report #01-043 December 2001 @@ -112,7 +112,7 @@ SpencerUsenixSec1999 - + RaySpencer StephenSmalley @@ -123,7 +123,7 @@ The Flask Security Architecture: System Support for Diverse Security Policies - + Proceedings of the Eighth USENIX Security Symposium The USENIX Association --- orig/policy/lang.sgml +++ mod/policy/lang.sgml @@ -244,9 +244,9 @@ type_transition cardmgr_t tmp_t:devfile_class_set cardmgr_dev_t; -
+
Class Macros - + Macro Name @@ -420,9 +420,9 @@ allow sshd_t sshd_tmp_t:dir create_dir_perms; -
+
File Permission Macros - + Macro Name @@ -486,9 +486,9 @@
- +
Socket Permission Macros - + Macro Name @@ -516,9 +516,9 @@
- +
IPC Permission Macros - + Macro Name @@ -582,9 +582,9 @@ As with other macros, care should be taken when using these macros to avoid granting unintended permissions. -
+
TE Access Vector Rule Macros - + Macro Name @@ -772,9 +772,9 @@ directory rather than in the types directory. The assert.te file specifies TE assertions. -
+
TE Configuration Files - + Filename --=-=-= -- To be, or what? Sylvester Stallone Manoj Srivastava 1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C --=-=-=-- -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes as the message.