aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--security/selinux/netif.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/security/selinux/netif.c b/security/selinux/netif.c
index ac65f7417413..8c738c189942 100644
--- a/security/selinux/netif.c
+++ b/security/selinux/netif.c
@@ -145,9 +145,8 @@ static int sel_netif_sid_slow(struct net *ns, int ifindex, u32 *sid)
145 145
146 dev = dev_get_by_index(ns, ifindex); 146 dev = dev_get_by_index(ns, ifindex);
147 if (unlikely(dev == NULL)) { 147 if (unlikely(dev == NULL)) {
148 printk(KERN_WARNING 148 pr_warn("SELinux: failure in %s(), invalid network interface (%d)\n",
149 "SELinux: failure in sel_netif_sid_slow()," 149 __func__, ifindex);
150 " invalid network interface (%d)\n", ifindex);
151 return -ENOENT; 150 return -ENOENT;
152 } 151 }
153 152
@@ -177,10 +176,8 @@ out:
177 spin_unlock_bh(&sel_netif_lock); 176 spin_unlock_bh(&sel_netif_lock);
178 dev_put(dev); 177 dev_put(dev);
179 if (unlikely(ret)) { 178 if (unlikely(ret)) {
180 printk(KERN_WARNING 179 pr_warn("SELinux: failure in %s(), unable to determine network interface label (%d)\n",
181 "SELinux: failure in sel_netif_sid_slow()," 180 __func__, ifindex);
182 " unable to determine network interface label (%d)\n",
183 ifindex);
184 kfree(new); 181 kfree(new);
185 } 182 }
186 return ret; 183 return ret;