Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1423411 > unrolled thread

Re: [PATCH 1/1] selinuxfs: fix type mismatch

Started byPaul Moore <paul@paul-moore.com>
First post2016-06-15 22:30 +0200
Last post2016-06-15 22:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 1/1] selinuxfs: fix type mismatch Paul Moore <paul@paul-moore.com> - 2016-06-15 22:30 +0200

#1423411 — Re: [PATCH 1/1] selinuxfs: fix type mismatch

FromPaul Moore <paul@paul-moore.com>
Date2016-06-15 22:30 +0200
SubjectRe: [PATCH 1/1] selinuxfs: fix type mismatch
Message-ID<rKpBL-7cb-11@gated-at.bofh.it>
On Fri, Jun 10, 2016 at 5:14 PM, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
> avc_cache_threshold is of type unsigned int.
>
> Do not use a signed new_value in
> sscanf(page, "%u", &new_value).
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
>  security/selinux/selinuxfs.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

> diff --git a/security/selinux/selinuxfs.c b/security/selinux/selinuxfs.c
> index 1b1fd27..0765c5b 100644
> --- a/security/selinux/selinuxfs.c
> +++ b/security/selinux/selinuxfs.c
> @@ -1347,7 +1347,7 @@ static ssize_t sel_write_avc_cache_threshold(struct file *file,
>  {
>         char *page;
>         ssize_t ret;
> -       int new_value;
> +       unsigned int new_value;
>
>         ret = task_has_security(current, SECURITY__SETSECPARAM);
>         if (ret)
> --
> 2.1.4
>



-- 
paul moore
www.paul-moore.com

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web