* [2.6 patch] make selinux_set_mnt_opts() static
@ 2008-01-28 22:11 Adrian Bunk
2008-01-28 22:37 ` James Morris
0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2008-01-28 22:11 UTC (permalink / raw)
To: Eric Paris, Stephen D. Smalley, James Morris; +Cc: linux-kernel
selinux_set_mnt_opts() can become static.
Signed-off-by: Adrian Bunk <bunk@kernel.org>
---
d9cfb159caa25ed5ad3dee35d62a6e1a0bd51ef6
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index 0396354..04eeab7 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -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;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [2.6 patch] make selinux_set_mnt_opts() static
2008-01-28 22:11 [2.6 patch] make selinux_set_mnt_opts() static Adrian Bunk
@ 2008-01-28 22:37 ` James Morris
0 siblings, 0 replies; 2+ messages in thread
From: James Morris @ 2008-01-28 22:37 UTC (permalink / raw)
To: Adrian Bunk; +Cc: Eric Paris, Stephen D. Smalley, linux-kernel
On Tue, 29 Jan 2008, Adrian Bunk wrote:
> selinux_set_mnt_opts() can become static.
>
> Signed-off-by: Adrian Bunk <bunk@kernel.org>
>
Thanks, applied.
> ---
> d9cfb159caa25ed5ad3dee35d62a6e1a0bd51ef6
> diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
> index 0396354..04eeab7 100644
> --- a/security/selinux/hooks.c
> +++ b/security/selinux/hooks.c
> @@ -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;
>
--
James Morris
<jmorris@namei.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-01-28 22:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-28 22:11 [2.6 patch] make selinux_set_mnt_opts() static Adrian Bunk
2008-01-28 22:37 ` James Morris
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox