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 3/8] SELinux netif.c non trivial fixes.
Date
Signed-off-by: Justin P. Mattock <justinmattock@gmail.com>

Fix some comments.
---
security/selinux/netif.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/security/selinux/netif.c b/security/selinux/netif.c
index b4e14bc..dc6dc37 100644
--- a/security/selinux/netif.c
+++ b/security/selinux/netif.c
@@ -71,8 +71,8 @@ static inline struct sel_netif *sel_netif_find(int ifindex)
struct sel_netif *netif;

list_for_each_entry_rcu(netif, &sel_netif_hash[idx], list)
- /* all of the devices should normally fit in the hash, so we
- * optimize for that case */
+ /* All of the devices should normally fit in the hash, so we
+ * optimize for that case. */
if (likely(netif->nsec.ifindex == ifindex))
return netif;

@@ -152,13 +152,13 @@ static int sel_netif_sid_slow(int ifindex, u32 *sid)
struct sel_netif *new = NULL;
struct net_device *dev;

- /* NOTE: we always use init's network namespace since we don't
- * currently support containers */
+ /* NOTE: We always use init's network namespace since we don't
+ * currently support containers. */

dev = dev_get_by_index(&init_net, ifindex);
if (unlikely(dev == NULL)) {
printk(KERN_WARNING
- "SELinux: failure in sel_netif_sid_slow(),"
+ "SELinux: Failure in sel_netif_sid_slow(),"
" invalid network interface (%d)\n", ifindex);
return -ENOENT;
}
@@ -189,7 +189,7 @@ out:
dev_put(dev);
if (unlikely(ret)) {
printk(KERN_WARNING
- "SELinux: failure in sel_netif_sid_slow(),"
+ "SELinux: Failure in sel_netif_sid_slow(),"
" unable to determine network interface label (%d)\n",
ifindex);
kfree(new);
--
1.6.3.2


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