aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/ss/services.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/selinux/ss/services.c')
-rw-r--r--security/selinux/ss/services.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c
index 0f97ef578370..8dfaa3e7c26d 100644
--- a/security/selinux/ss/services.c
+++ b/security/selinux/ss/services.c
@@ -1478,11 +1478,8 @@ out:
1478 * security_netif_sid - Obtain the SID for a network interface. 1478 * security_netif_sid - Obtain the SID for a network interface.
1479 * @name: interface name 1479 * @name: interface name
1480 * @if_sid: interface SID 1480 * @if_sid: interface SID
1481 * @msg_sid: default SID for received packets
1482 */ 1481 */
1483int security_netif_sid(char *name, 1482int security_netif_sid(char *name, u32 *if_sid)
1484 u32 *if_sid,
1485 u32 *msg_sid)
1486{ 1483{
1487 int rc = 0; 1484 int rc = 0;
1488 struct ocontext *c; 1485 struct ocontext *c;
@@ -1510,11 +1507,8 @@ int security_netif_sid(char *name,
1510 goto out; 1507 goto out;
1511 } 1508 }
1512 *if_sid = c->sid[0]; 1509 *if_sid = c->sid[0];
1513 *msg_sid = c->sid[1]; 1510 } else
1514 } else {
1515 *if_sid = SECINITSID_NETIF; 1511 *if_sid = SECINITSID_NETIF;
1516 *msg_sid = SECINITSID_NETMSG;
1517 }
1518 1512
1519out: 1513out:
1520 POLICY_RDUNLOCK; 1514 POLICY_RDUNLOCK;