Received: from mummy.ncsc.mil (mummy.ncsc.mil [144.51.88.129]) by tycho.ncsc.mil (8.12.8/8.12.8) with ESMTP id iA4KVtXZ026912 for ; Thu, 4 Nov 2004 15:31:57 -0500 (EST) Received: from moss-lions.epoch.ncsc.mil (jazzhorn.ncsc.mil [144.51.5.9]) by mummy.ncsc.mil (8.12.10/8.12.10) with ESMTP id iA4KUM8f025090 for ; Thu, 4 Nov 2004 20:30:22 GMT Received: from moss-lions.epoch.ncsc.mil (localhost.localdomain [127.0.0.1]) by moss-lions.epoch.ncsc.mil (8.12.11/8.12.11) with ESMTP id iA4KYDPZ011977 for ; Thu, 4 Nov 2004 15:34:13 -0500 Received: (from jwcart2@localhost) by moss-lions.epoch.ncsc.mil (8.12.11/8.12.11/Submit) id iA4KYDWN011976 for selinux@tycho.nsa.gov; Thu, 4 Nov 2004 15:34:13 -0500 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 iA4KI1XZ026652 for ; Thu, 4 Nov 2004 15:18:03 -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 iA4KHod1016749 for ; Thu, 4 Nov 2004 20:17:57 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 iA4KAARt009673 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Thu, 4 Nov 2004 14:10:15 -0600 To: selinux@tycho.nsa.gov Subject: selinux-doc patchset 1 of 2: Fixing name tokens to not contain underscores 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:09:46 -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: <87bredqstx.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, This is the first of two patch sets that allow selinux-doc to be build again by the new openjade. This only modifies the IDs and the references to use StudlyCaps instead. manoj --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=tags.diff Content-Description: Use StudlyCaps name tokens * looking for srivasta@debian.org--2003-primary/selinux-doc--debian--1.0--base-0 to compare with * comparing to srivasta@debian.org--2003-primary/selinux-doc--debian--1.0--base-0 M module/inode.sgml M module/ip.sgml M module/ipc.sgml M module/nsid.sgml M module/sb.sgml M module/skb.sgml M module/socket.sgml M module/stacking.sgml M module/system.sgml M module/task.sgml M policy/apps.sgml M module/binprm.sgml M module/changes.sgml M module/file.sgml M module/helper.sgml M module/init.sgml * modified files --- orig/module/binprm.sgml +++ mod/module/binprm.sgml @@ -7,7 +7,7 @@ describes these hooks and their helper functions. -Managing Binprm Security Fields +Managing Binprm Security Fields selinux_bprm_alloc_security and selinux_bprm_free_security @@ -37,7 +37,7 @@ -selinux_bprm_set_security +selinux_bprm_set_security The selinux_bprm_set_security hook function is called while loading a new program to fill in the @@ -72,14 +72,14 @@ The file execute_no_trans permission is checked when a task would remain in the same SID upon executing a program, as -shown in . This permission check +shown in . This permission check ensures that a task is allowed to execute a given program without changing its security attributes. For example, although the login process can execute a user shell, it should always change its SID at the same time, so it does not need this permission to the shell program. - +
Permission Checks if Task SID is not changing on exec @@ -108,9 +108,9 @@ entrypoint permission check ensures that the new SID can only be entered by executing particular programs. Such programs are referred to as entrypoint programs for the SID. These -permission checks are shown in . +permission checks are shown in . -
+
Permission Checks if Task SID is changing on exec @@ -138,7 +138,7 @@ -selinux_bprm_compute_creds +selinux_bprm_compute_creds The selinux_bprm_compute_creds hook function is called to set the new security attributes for the task. This hook @@ -158,9 +158,9 @@ share permission is checked between the old and new SIDs. If these permission checks fail, then the task SID is left unchanged and the task is sent a SIGKILL to terminate it. -These permission checks are shown in . +These permission checks are shown in . -
+
Permission Checks if Task SID is changing on exec @@ -195,7 +195,7 @@ open file with requested permissions that correspond to the file mode and flags, and closes the open file if these permissions are not granted under the new SID. The file_has_perm -function is described in . Finally, +function is described in . Finally, this hook function wakes up the parent task if it is waiting on this task. This allows the selinux_task_wait hook to recheck whether the parent task is allowed to wait on the task under --- orig/module/changes.sgml +++ mod/module/changes.sgml @@ -104,7 +104,7 @@ -Leveraging Linux Permission Functions +Leveraging Linux Permission Functions The original SELinux kernel patch directly inserted its own permission checks throughout the kernel code rather than trying to leverage @@ -136,8 +136,8 @@ Using these hooks required defining some additional coarse-grained permissions for SELinux. These permissions are discussed further in - and in . Whenever possible, the LSM-based + and in . Whenever possible, the LSM-based SELinux security module leverages these hooks to provide control. When SELinux requires finer-grained control, the module implements these finer-grained SELinux controls using the additional LSM hooks. @@ -145,7 +145,7 @@ -Program Execution Changes +Program Execution Changes This subsection describes general changes between the original SELinux kernel patch and the LSM-based SELinux security module related to @@ -184,11 +184,11 @@ file class for consistency. The file execute and process transition permissions were left unchanged. These checks are described further in . +linkend="BprmSetSecurity">. -Inheritance of State +Inheritance of State Several changes were made to the controls over the inheritance of state across a context-changing execve. These changes included @@ -199,7 +199,7 @@ The file descriptor inheritance permission checks during program execution were revised for the LSM-based SELinux security module. -This is discussed in . +This is discussed in . @@ -218,14 +218,14 @@ share permission was added to provide configurable control over process state sharing across SID transitions. This is described further in . +linkend="BprmComputeCreds">. New permission checks were implemented in the LSM-based SELinux to control inheritance of signal-related state and resource limits. These checks are also described in . Furthermore, a +linkend="BprmComputeCreds">. Furthermore, a AT_SECURE flag was added to the ELF auxiliary table so that the SELinux module could inform glibc when to enable its own secure mode in order to sanitize the environment and other state @@ -285,13 +285,13 @@ inodes is still handled by the hooks called by the VFS layer. The LSM-based SELinux also expanded and generalized support for pseudo filesystem labeling. The handling for these pseudo filesystem types is described in . +linkend="InodePrecondition">. -Leveraging <function>permission</function> +Leveraging <function>permission</function> -As discussed in , LSM inserts a +As discussed in , LSM inserts a hook into the existing Linux functions for permission checking, including the permission function for checking access to objects represented by inodes. The LSM-based SELinux @@ -329,7 +329,7 @@ -File Descriptor Permissions +File Descriptor Permissions In the original SELinux kernel patch, distinct file descriptor permissions were defined for getting the file offset or flags @@ -368,7 +368,7 @@ -Pipe Security Class +Pipe Security Class In the original SELinux kernel patch, a separate security class was defined for pipes, although this security class merely inherited the @@ -452,7 +452,7 @@ security module leverages the hooks in the existing Linux permission functions but also required two additional hooks in the Unix domain protocol implementation due to the abstract namespace. The SELinux -socket access controls are described in and +socket access controls are described in and the SELinux network layer access controls are described in . @@ -462,7 +462,7 @@ The file descriptor transfer permission checks during socket IPC were revised for the LSM-based SELinux security module. -This is discussed in . +This is discussed in . @@ -529,13 +529,13 @@ with common information. Hence, LSM was able to add a single security field to this common structure and a single security field to the structure for individual messages. This is discussed further in . +linkend="IpcSecurity">. -Leveraging <function>ipcperms</function> +Leveraging <function>ipcperms</function> -As discussed in , LSM inserts a +As discussed in , LSM inserts a hook into the existing Linux functions for permission checking, including the ipcperms function for checking access to IPC objects. The LSM-based SELinux security module @@ -552,7 +552,7 @@ finer-grained permission. The coarse-grained permission checks could be omitted, but they are present to ensure that all IPC accesses are controlled by SELinux. These checks are discussed in . +linkend="IpcPermission">. --- orig/module/file.sgml +++ mod/module/file.sgml @@ -116,7 +116,7 @@ -selinux_file_set_fowner +selinux_file_set_fowner This hook function is called to save security information about the current task in the file security structure for later use by the @@ -132,7 +132,7 @@ Controlling File Operations -file_has_perm +file_has_perm This helper function checks whether a task can use an open file descriptor to access a file in a given way. It takes the task, the file, and the @@ -180,10 +180,10 @@ file permission is specified so only the use permission is checked. The generic ioctl file permission is used for commands that are not specifically handled. - shows the permission checks performed for each + shows the permission checks performed for each command. -
+
I/O Control Permission Checks @@ -315,9 +315,9 @@ call. It calls file_has_perm with a requested file permission based on the command parameter. The basic permission checks performed for each command are shown in -. +. -
+
File Control Permission Checks @@ -376,7 +376,7 @@ -selinux_file_send_sigiotask +selinux_file_send_sigiotask This hook function is called to check whether a signal generated by an event on a file descriptor can be sent to a task. This function is --- orig/module/helper.sgml +++ mod/module/helper.sgml @@ -8,7 +8,7 @@ in the appropriate hooks section. -Primitive Allocation Helper Functions +Primitive Allocation Helper Functions For each SELinux security data structure defined in @@ -105,8 +105,8 @@ limited. The SELinux module does what it can to determine the correct attributes after the fact, but it isn't always successful in the dynamically loaded module case. This is discussed in detail for -inodes in and for tasks in . We recommend always compiling the +inodes in and for tasks in . We recommend always compiling the SELinux module into the kernel. --- orig/module/init.sgml +++ mod/module/init.sgml @@ -1,4 +1,4 @@ -Initialization and Exit +Initialization and Exit This section describes the initialization and exit code for the --- orig/module/inode.sgml +++ mod/module/inode.sgml @@ -13,7 +13,7 @@ control. -Managing Inode Security Fields +Managing Inode Security Fields Inode Security Structure The inode_security_struct structure contains @@ -134,7 +134,7 @@ -inode_precondition +inode_precondition This helper function is the @@ -154,15 +154,15 @@ socket_type_to_security_class function is used to obtain the security class based on the socket family and type. The socket security classes are described in . Otherwise, the +LinkEnd="SocketPostCreate">. Otherwise, the inode_mode_to_security_class function is used to obtain the security class based on the inode mode. The mapping between inode modes and security classes is described in -. If the inode does not have any -of the modes listed in , +. If the inode does not have any +of the modes listed in , then it defaults to the file security class. -
+
Inode Security Classes @@ -383,7 +383,7 @@ -Controlling Inode Operations +Controlling Inode Operations inode_has_perm @@ -419,9 +419,9 @@ new file. If so, then this SID is used. Otherwise, a SID is obtained from the security server using the security_transition_sid interface. The function -then checks permissions as described in . +then checks permissions as described in . -
+
Create Permission Checks @@ -470,9 +470,9 @@ a file or directory. It takes the parent directory inode, the dentry of the file, and a flag indicating the requested operation. The permission checks for these operations are shown in - and . + and . -
+
Link Permission Checks @@ -497,7 +497,7 @@
- +
Unlink or Rmdir Permission Checks @@ -540,18 +540,18 @@ directory. It takes the inodes of the old and new parent directories, the dentry of an existing link to the file, and the new dentry for the file. This function checks the permissions described in -, , -and . -The permissions in are always -checked. The permissions in +, , +and . +The permissions in are always +checked. The permissions in are only checked if the new dentry already has an existing inode (i.e. a file already exists with the new name), in which case that file will be removed by the rename. The -permissions in are only +permissions in are only checked if the file is a directory and its parent directory is being changed by the rename. -
+
Basic Rename Permission Checks @@ -581,7 +581,7 @@
- +
Additional Rename Permission Checks if NewFile Exists @@ -606,7 +606,7 @@
- +
Additional Rename Permission Checks if Reparenting @@ -636,7 +636,7 @@ -selinux_inode_permission +selinux_inode_permission This hook function is called by the Linux @@ -644,14 +644,14 @@ accessing an inode. It converts the permission mask to an access vector using the file_mask_to_av function, and calls inode_has_perm with the appropriate -parameters. specifies the SELinux permission +parameters. specifies the SELinux permission that is checked for each permission mask flag when checking access -to a directory. provides the corresponding +to a directory. provides the corresponding permission information when checking access to a non-directory file. -In , notice that a +In , notice that a write permission mask causes the general write permission to be checked. This hook function cannot distinguish among the various kinds of modification operations on directories, so it @@ -664,7 +664,7 @@ could be omitted from this hook, but it is performed to ensure that all directory modifications are mediated by the policy. -
+
Directory Permission Checks @@ -694,7 +694,7 @@ -In , notice that a +In , notice that a separate MAY_APPEND permission mask and append permission are listed. This permission mask was added by the LSM kernel patch and is used (along with @@ -705,7 +705,7 @@ O_APPEND flag is not subsequently cleared unless the process has write permission to the file. -
+
Non-Directory Permission Checks @@ -744,9 +744,9 @@ for various operations. Since each of these remaining hook functions only require a single permission between the current task and the file, the permission checks are all described in -. +. -
+
Remaining Inode Hook Permission Checks --- orig/module/ip.sgml +++ mod/module/ip.sgml @@ -44,9 +44,9 @@ on the protocol type) between the network buffer and the receiving network interface and a permission between the network buffer and the source node. The permission checked for each protocol type is shown -in . +in . -
+
Packet Receive Permissions @@ -137,7 +137,7 @@ type) between the network buffer and the sending network device. It also checks the same permission between the network buffer and the destination node. The permission checked for each protocol type is -shown in . The SID used in these +shown in . The SID used in these checks is the message SID stored in the network buffer security structure. In the case of forwarded packets, this SID was initialized by the selinux_ip_preroute_last hook during input @@ -145,7 +145,7 @@ selinux_skb_set_owner_w hook sets the message SID. -
+
Packet Send Permissions --- orig/module/ipc.sgml +++ mod/module/ipc.sgml @@ -6,7 +6,7 @@ describes these hooks and their helper functions. -Managing System V IPC Security Fields +Managing System V IPC Security Fields IPC Security Structure @@ -24,7 +24,7 @@ }; -
+
ipc_security_struct @@ -49,7 +49,7 @@ sclass Security class for the IPC object (see - ). + ). @@ -128,7 +128,7 @@ -ipc_alloc_security and ipc_free_security +ipc_alloc_security and ipc_free_security The ipc_alloc_security and ipc_free_security helper functions are the @@ -257,21 +257,21 @@ -selinux_ipc_permission +selinux_ipc_permission This hook function is called from the kernel ipcperms function, so it is called prior to all IPC operations that will read or modify the IPC object. This hook function checks unix_read and/or unix_write permission to the IPC object based on -the flag, as shown in . These +the flag, as shown in . These permissions provide a coarse-grained equivalent to the Unix permissions, whereas the other IPC hooks check finer-grained permissions. These coarse-grained permission checks are not strictly necessary, but ensure that all IPC accesses are mediated by the policy. -
+
ipc_permission Permission Checks @@ -333,10 +333,10 @@ This hook function checks permissions before performing an operation on the specified semaphore; the specific permission is determined by the operation being performed. The permissions required for each operation -are shown in . +are shown in . -
+
Semaphore Control Permissions @@ -421,9 +421,9 @@ This hook function checks permissions before performing an operation on the specified shared memory region; the specific permission is determined by the operation being performed. The permissions required for each operation -are shown in . +are shown in . -
+
Shared Memory Control Permissions @@ -494,9 +494,9 @@ This hook function checks permissions before performing an operation on the specified message queue; the specific permission is determined by the operation being performed. The permissions required for each -operation are shown in . +operation are shown in . -
+
Message Queue Control Permissions @@ -541,7 +541,7 @@ call to check the ability to place an individual message on a message queue. It performs three permission checks, involving the current task, the message queue, and the individual message. These checks are -shown in . This hook function also sets the SID on the +shown in . This hook function also sets the SID on the message if it is unlabeled. It uses the SID from the in_sid array of the task security structure if the new msgsnd_secure system call was used. Otherwise, @@ -549,7 +549,7 @@ the security server to obtain a SID based on the SID of the task and the SID of the message queue. -
+
Message Send Permissions @@ -590,7 +590,7 @@ receiving task may not be the current task and is explicitly passed to the hook. This hook function performs two permission checks, involving the receiving task, the message queue, and the individual message. -These permission checks are shown in . +These permission checks are shown in . In the case that the new msgrcv_secure system call is being used to specify a desired message SID, then this hook also checks the actual message SID against the desired message SID. @@ -602,7 +602,7 @@ process and may cause the calling process to block waiting for messages that are accessible. -
+
Message Receive Permissions --- orig/module/nsid.sgml +++ mod/module/nsid.sgml @@ -11,7 +11,7 @@ . -NSID API +NSID API The Network SID (NSID) API provides a general framework for labeled networking that is intended to be independent of the underlying @@ -130,7 +130,7 @@ -selopt_ip_label_output +selopt_ip_label_output This function adds security labels to the IP packet by copying the SIDs from the network buffer security structure into the IP packet's @@ -141,7 +141,7 @@ -selopt_ip_map_input +selopt_ip_map_input This function will return NF_DROP for any packet from outside the perimeter that is labeled, and for any unlabeled packet @@ -165,7 +165,7 @@ -selopt_ip_decode_options +selopt_ip_decode_options This function will decode the security labels from the options field of the IP packet header. For packets that are not being delivered to @@ -176,7 +176,7 @@ -selopt_ip_defragment +selopt_ip_defragment This function is used verify security labels across IP fragments. At this time, labeled fragments are not supported, so this function prints a @@ -184,7 +184,7 @@ -selopt_sock_sendmsg +selopt_sock_sendmsg Before an IP packet with options can be sent out, the maximum segment size (MSS) must be adjusted. This function is called by the --- orig/module/sb.sgml +++ mod/module/sb.sgml @@ -8,7 +8,7 @@ discusses the superblock hook functions for performing access control. -Managing Superblock Security Fields +Managing Superblock Security Fields Superblock Security Structure The superblock_security_struct structure @@ -192,7 +192,7 @@ -Controlling Filesystem Operations +Controlling Filesystem Operations superblock_has_perm @@ -268,9 +268,9 @@ Summary of Filesystem Permission Checks The permission checks for the super_block hooks are summarized -in . +in . -
+
Filesystem Permission Checks --- orig/module/skb.sgml +++ mod/module/skb.sgml @@ -20,7 +20,7 @@ implementation for these two hooks. -Network Buffer Security Structure +Network Buffer Security Structure The skb_security_struct structure contains security information for network buffers. This structure is defined as: @@ -109,14 +109,14 @@ See , , and for a discussion of how these fields are used +linkend="SockRcvSkb"> for a discussion of how these fields are used by the labeled networking support, the IP hooks, and the sock_rcv_skb hook. -selinux_skb_set_owner_w +selinux_skb_set_owner_w This hook sets the SID fields in a network buffer for an outgoing packet when the buffer is associated with a particular sending socket. @@ -147,13 +147,13 @@ the source socket SID and message SID for the network buffer are set by default to the SID of the sending socket. However, the extended socket calls may change the SIDs used for the network -buffer. See for a +buffer. See for a discussion of the optional extended socket call processing. -selinux_skb_recv_datagram +selinux_skb_recv_datagram This hook calls the extsocket_skb_recv_datagram function to perform the processing necessary for the extended socket calls. --- orig/module/socket.sgml +++ mod/module/socket.sgml @@ -98,14 +98,14 @@ inode_alloc_security, inode_free_security and inode_precondition functions are also applicable -to sockets. See for a discussion of +to sockets. See for a discussion of these functions. However, additional socket-specific hook functions are necessary to initialize and manage the information in these inode security structures for sockets. These hook functions are described below. -selinux_socket_post_create +selinux_socket_post_create After a socket structure has been successfully created, this hook function is called to update the inode @@ -115,14 +115,14 @@ for the different types of sockets, as determined by the type and protocol family specified as parameters to the socket system call. The security class is -assigned according to . If the socket +assigned according to . If the socket does not match any of the specified types, it defaults to the generic socket security class. The kernel socket (struct sock) associated with the socket will have it's SID set to the user socket SID. This SID is used to label outgoing packets from a socket that has no user space socket structure associated with it. -
+
Socket Security Classes @@ -176,13 +176,13 @@ -selinux_socket_accept +selinux_socket_accept This hook function is called after a new socket has been created for the connection but prior to calling the protocol family's accept function. In addition to checking permission (discussed further in ), this hook function sets the SID and security +LinkEnd="SocketAc">), this hook function sets the SID and security class for the new socket. The new socket always inherits the security class of the listening socket. By default, the new socket SID is initialized to the SID of the listening socket. The @@ -192,7 +192,7 @@ -selinux_socket_post_accept +selinux_socket_post_accept This hook function is called after calling the protocol family's accept function. This hook calls the @@ -201,7 +201,7 @@ -selinux_tcp_connection_request +selinux_tcp_connection_request A new connection is being requested on a listening socket. This hook allows the LSM module to maintain security information about the client during the @@ -210,7 +210,7 @@ -selinux_tcp_synack +selinux_tcp_synack A reply SYN/ACK is being sent for a connection request. This hook allows the LSM module to label the SYN/ACK packet. For SELinux, the label used @@ -222,7 +222,7 @@ -selinux_tcp_create_openreq_child +selinux_tcp_create_openreq_child This hook is called when a new TCP kernel socket is created, typically during the accept system call. The @@ -236,7 +236,7 @@ -Controlling Socket Operations +Controlling Socket Operations socket_has_perm @@ -255,11 +255,11 @@ are needed for additional processing). Some of the hook functions perform additional processing. The hook functions and the initial permission that they check are shown in . Any additional processing for the hook +linkend="SocklayerTable">. Any additional processing for the hook functions, excluding the optional extended socket call processing, is then described in the following subsections. -
+
Socket Layer Hook Permission Checks @@ -352,7 +352,7 @@
-selinux_socket_bind +selinux_socket_bind The selinux_socket_bind hook function performs an additional name_bind permission @@ -361,7 +361,7 @@ -selinux_socket_sendmsg +selinux_socket_sendmsg Prior to returning, this hook function calls the NSID hook nsid_sock_sendmsg to adjust the maximum segment @@ -373,7 +373,7 @@
-selinux_socket_sock_rcv_skb (Transport Layer Hook) +selinux_socket_sock_rcv_skb (Transport Layer Hook) This hook function is called by the transport layer network protocols (e.g. UDP, TCP, raw IP, etc) to control receipt of individual packets @@ -423,7 +423,7 @@ of the socket and the kind of packet, additional processing may be performed. The additional processing is described below, and the additional permission checks are shown in . The optional extended socket call processing is +linkend="ConpermTable">. The optional extended socket call processing is described separately in . @@ -442,7 +442,7 @@ - +
Connection Establishment Permission Checks @@ -507,8 +507,8 @@ called for Unix datagram communications. It checks the sendto permission between the sending socket and the receiving socket. These permission checks are summarized in -. -
+. +
Unix Domain Permission Checks @@ -772,7 +772,7 @@ -extsocket_post_accept +extsocket_post_accept This function is called by selinux_socket_post_accept. @@ -790,7 +790,7 @@ -extsocket_sendmsg +extsocket_sendmsg This function is called by selinux_socket_sendmsg. If the socket is a stream socket, then this function verifies @@ -887,7 +887,7 @@ -extsocket_sock_rcv_skb +extsocket_sock_rcv_skb This function is called by selinux_sock_rcv_skb. If the socket is a TCP socket in the TCP_LISTEN @@ -1033,7 +1033,7 @@ -extsocket_skb_set_owner_w +extsocket_skb_set_owner_w This function is called by selinux_skb_set_owner_w. If the message SID (non-stream only) or destination socket SID are set @@ -1041,7 +1041,7 @@ then cleared from the socket. These SID fields in the socket's inode security structure are set during selinux_socket_sendmsg. [XXX This is unreliable, -see .] +see .] --- orig/module/stacking.sgml +++ mod/module/stacking.sgml @@ -17,7 +17,7 @@ -As mentioned in , the +As mentioned in , the selinux_plug_init function initializes the secondary security module to the dummy security module, which is always resident in the kernel, prior to registering the SELinux --- orig/module/system.sgml +++ mod/module/system.sgml @@ -137,14 +137,14 @@ capable hook and a separate hook that offers finer-grained control. In many of these cases, the checking performed by selinux_capable is adequate for SELinux, so no -other processing is required. lists system +other processing is required. lists system hook functions for which no additional processing is required and the capability permission that is used to control the same operation. Of course, finer-grained permissions may be added to SELinux in the 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 @@ -227,9 +227,9 @@ It then performs a permission check based on the requested operation, treating the sysctl entry as a directory for search operations and as a file for read or write operations on a variable. - shows the permission checks associated with + shows the permission checks associated with each requested operation. -
+
sysctl Permission Checks @@ -337,12 +337,12 @@ Remaining System Hook Functions Each of the remaining system hook functions performs a simple -permission check, as summarized in . The +permission check, as summarized in . The selinux_ptrace hook function also calls the secondary module to permit it to perform additional capability checking. -
+
Remaining System Hook Function Permission Checks --- orig/module/task.sgml +++ mod/module/task.sgml @@ -7,7 +7,7 @@ describes these hooks and their helper functions. -Managing Task Security Fields +Managing Task Security Fields Task Security Structure The task_security_struct structure contains @@ -92,7 +92,7 @@ -task_precondition +task_precondition This helper function is the precondition function for task security structures. This function @@ -154,13 +154,13 @@ -Controlling Task Operations +Controlling Task Operations Helper Functions for Checking Task Permissions Several helper functions are provided for performing task permission checks. These functions and their permission checks are summarized in -. The task_has_perm function +. The task_has_perm function checks whether a task has a particular permission to another task. The task_has_capability function checks whether a task has permission to use a particular Linux capability. The @@ -172,7 +172,7 @@ task_has_security function checks whether a task has permission to use one of the security server system calls. -
+
Task Helper Function Permission Checks @@ -228,10 +228,10 @@ Hook Functions for Controlling Task Operations The task hook functions that perform access control and their -permission checks are summarized in . These +permission checks are summarized in . These functions call the task_has_perm helper function. -
+
Task Hook Function Permission Checks --- orig/policy/apps.sgml +++ mod/policy/apps.sgml @@ -178,7 +178,7 @@ Each file is discussed below. -Default_Contexts +Default_Contexts The modified daemons ask the security server for the set of legal SIDs for a given user that are reachable from the current process SID @@ -223,7 +223,7 @@ -Default_Type +Default_Type The default_type file defines the default type (domain) for each role. Each line specifies a role:type pair, and the @@ -236,7 +236,7 @@ -Initrc_Context +Initrc_Context The initrc_context file defines the security context for running /etc/rc.d scripts via the @@ -248,7 +248,7 @@ -Passwd_Context and Shadow_Context +Passwd_Context and Shadow_Context The passwd_context and shadow_context files define the context to be --=-=-= -- Doubt is a pain too lonely to know that faith is his twin brother. Kahlil Gibran 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.