Skip to contentSkip to conversation

make selinux_set_mnt_opts() static

PATCH Applied Adrian Bunk 2 participants 2 messages Jan 28, 2008 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 make selinux_set_mnt_opts() static

selinux_set_mnt_opts() can become static.

---
d9cfb159caa25ed5ad3dee35d62a6e1a0bd51ef6

security/selinux/hooks.c +2 -2
index 0396354..04eeab7 100644
@@ -561,8 +561,8 @@ static int bad_option(struct superblock_security_struct *sbsec, char flag,
  * Allow filesystems with binary mount data to explicitly set mount point
  * labeling information.
  */
-int selinux_set_mnt_opts(struct super_block *sb, char **mount_options,
-				 int *flags, int num_opts)
+static int selinux_set_mnt_opts(struct super_block *sb, char **mount_options,
+				int *flags, int num_opts)
 {
 	int rc = 0, i;
 	struct task_security_struct *tsec = current->security;
Applied
#1 lore raw
Quoted 4 lines · Adrian Bunk

selinux_set_mnt_opts() can become static.

Thanks, applied.

Quoted 18 lines

---
d9cfb159caa25ed5ad3dee35d62a6e1a0bd51ef6

security/selinux/hooks.c +2 -2
index 0396354..04eeab7 100644
@@ -561,8 +561,8 @@ static int bad_option(struct superblock_security_struct *sbsec, char flag,
  * Allow filesystems with binary mount data to explicitly set mount point
  * labeling information.
  */
-int selinux_set_mnt_opts(struct super_block *sb, char **mount_options,
-				 int *flags, int num_opts)
+static int selinux_set_mnt_opts(struct super_block *sb, char **mount_options,
+				int *flags, int num_opts)
 {
 	int rc = 0, i;
 	struct task_security_struct *tsec = current->security;
Signature · 2 lines
James Morris
<[email protected]>