lkml.org 
[lkml]   [2009]   [Jul]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4/8] SELinux netlabel.c non trivial fixes.
    Date
    Signed-off-by: Justin P. Mattock <justinmattock@gmail.com>

    Fix a comment to sound better.
    Fix some comments.
    ---
    security/selinux/netlabel.c | 10 +++++-----
    1 files changed, 5 insertions(+), 5 deletions(-)

    diff --git a/security/selinux/netlabel.c b/security/selinux/netlabel.c
    index 2e98441..7868ea2 100644
    --- a/security/selinux/netlabel.c
    +++ b/security/selinux/netlabel.c
    @@ -167,7 +167,7 @@ void selinux_netlbl_sk_security_reset(struct sk_security_struct *ssec)
    *
    * Description:
    * Call the NetLabel mechanism to get the security attributes of the given
    - * packet and use those attributes to determine the correct context/SID to
    + * packet and use those attributes to determine the correct context/SID to be
    * assign to the packet. Returns zero on success, negative values on failure.
    *
    */
    @@ -216,8 +216,8 @@ int selinux_netlbl_skbuff_setsid(struct sk_buff *skb,
    struct netlbl_lsm_secattr *secattr = NULL;
    struct sock *sk;

    - /* if this is a locally generated packet check to see if it is already
    - * being labeled by it's parent socket, if it is just exit */
    + /* If this is a locally generated packet check to see if it is already
    + * being labeled by it's parent socket, if it is just exit. */
    sk = skb->sk;
    if (sk != NULL) {
    struct sk_security_struct *sksec = sk->sk_security;
    @@ -444,9 +444,9 @@ int selinux_netlbl_socket_connect(struct sock *sk, struct sockaddr *addr)
    local_bh_disable();
    bh_lock_sock_nested(sk);

    - /* connected sockets are allowed to disconnect when the address family
    + /* Connected sockets are allowed to disconnect when the address family
    * is set to AF_UNSPEC, if that is what is happening we want to reset
    - * the socket */
    + * the socket. */
    if (addr->sa_family == AF_UNSPEC) {
    netlbl_sock_delattr(sk);
    sksec->nlbl_state = NLBL_REQSKB;
    --
    1.6.3.2


    \
     
     \ /
      Last update: 2009-07-02 07:35    [W:3.355 / U:0.272 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site