aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux
diff options
context:
space:
mode:
Diffstat (limited to 'security/selinux')
-rw-r--r--security/selinux/hooks.c4
-rw-r--r--security/selinux/netif.c4
-rw-r--r--security/selinux/netnode.c3
-rw-r--r--security/selinux/netport.c3
4 files changed, 5 insertions, 9 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index 2478976fc894..e66314138b38 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -3381,14 +3381,12 @@ static int selinux_file_fcntl(struct file *file, unsigned int cmd,
3381 return err; 3381 return err;
3382} 3382}
3383 3383
3384static int selinux_file_set_fowner(struct file *file) 3384static void selinux_file_set_fowner(struct file *file)
3385{ 3385{
3386 struct file_security_struct *fsec; 3386 struct file_security_struct *fsec;
3387 3387
3388 fsec = file->f_security; 3388 fsec = file->f_security;
3389 fsec->fown_sid = current_sid(); 3389 fsec->fown_sid = current_sid();
3390
3391 return 0;
3392} 3390}
3393 3391
3394static int selinux_file_send_sigiotask(struct task_struct *tsk, 3392static int selinux_file_send_sigiotask(struct task_struct *tsk,
diff --git a/security/selinux/netif.c b/security/selinux/netif.c
index 485524c477a4..e607b4473ef6 100644
--- a/security/selinux/netif.c
+++ b/security/selinux/netif.c
@@ -275,7 +275,7 @@ static struct notifier_block sel_netif_netdev_notifier = {
275 275
276static __init int sel_netif_init(void) 276static __init int sel_netif_init(void)
277{ 277{
278 int i, err; 278 int i;
279 279
280 if (!selinux_enabled) 280 if (!selinux_enabled)
281 return 0; 281 return 0;
@@ -285,7 +285,7 @@ static __init int sel_netif_init(void)
285 285
286 register_netdevice_notifier(&sel_netif_netdev_notifier); 286 register_netdevice_notifier(&sel_netif_netdev_notifier);
287 287
288 return err; 288 return 0;
289} 289}
290 290
291__initcall(sel_netif_init); 291__initcall(sel_netif_init);
diff --git a/security/selinux/netnode.c b/security/selinux/netnode.c
index ddf315260839..da923f89d2a9 100644
--- a/security/selinux/netnode.c
+++ b/security/selinux/netnode.c
@@ -303,7 +303,6 @@ void sel_netnode_flush(void)
303static __init int sel_netnode_init(void) 303static __init int sel_netnode_init(void)
304{ 304{
305 int iter; 305 int iter;
306 int ret;
307 306
308 if (!selinux_enabled) 307 if (!selinux_enabled)
309 return 0; 308 return 0;
@@ -313,7 +312,7 @@ static __init int sel_netnode_init(void)
313 sel_netnode_hash[iter].size = 0; 312 sel_netnode_hash[iter].size = 0;
314 } 313 }
315 314
316 return ret; 315 return 0;
317} 316}
318 317
319__initcall(sel_netnode_init); 318__initcall(sel_netnode_init);
diff --git a/security/selinux/netport.c b/security/selinux/netport.c
index 73ac6784d091..3311cc393cb4 100644
--- a/security/selinux/netport.c
+++ b/security/selinux/netport.c
@@ -237,7 +237,6 @@ void sel_netport_flush(void)
237static __init int sel_netport_init(void) 237static __init int sel_netport_init(void)
238{ 238{
239 int iter; 239 int iter;
240 int ret;
241 240
242 if (!selinux_enabled) 241 if (!selinux_enabled)
243 return 0; 242 return 0;
@@ -247,7 +246,7 @@ static __init int sel_netport_init(void)
247 sel_netport_hash[iter].size = 0; 246 sel_netport_hash[iter].size = 0;
248 } 247 }
249 248
250 return ret; 249 return 0;
251} 250}
252 251
253__initcall(sel_netport_init); 252__initcall(sel_netport_init);