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


Groups > linux.kernel > #1266219 > unrolled thread

Re: [PATCH v4 03/11] lsm: add file opener's cred to a setprocattr arguments

Started byAl Viro <viro@ZenIV.linux.org.uk>
First post2015-11-10 05:20 +0100
Last post2015-11-10 11:20 +0100
Articles 2 — 2 participants

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 v4 03/11] lsm: add file opener's cred to a setprocattr  arguments Al Viro <viro@ZenIV.linux.org.uk> - 2015-11-10 05:20 +0100
    Re: [PATCH v4 03/11] lsm: add file opener's cred to a setprocattr  arguments Lukasz Pawelczyk <l.pawelczyk@samsung.com> - 2015-11-10 11:20 +0100

#1266219 — Re: [PATCH v4 03/11] lsm: add file opener's cred to a setprocattr arguments

FromAl Viro <viro@ZenIV.linux.org.uk>
Date2015-11-10 05:20 +0100
SubjectRe: [PATCH v4 03/11] lsm: add file opener's cred to a setprocattr arguments
Message-ID<qt8zv-7V-1@gated-at.bofh.it>
On Wed, Oct 14, 2015 at 02:41:57PM +0200, Lukasz Pawelczyk wrote:
>  	int (*getprocattr)(struct task_struct *p, char *name, char **value);
> -	int (*setprocattr)(struct task_struct *p, char *name, void *value,
> -				size_t size);
> +	int (*setprocattr)(struct task_struct *p, const struct cred *f_cred,
> +			   char *name, void *value, size_t size);

*grumble*

Why the hell is that thing taking char *name - not even const char *?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1266379

FromLukasz Pawelczyk <l.pawelczyk@samsung.com>
Date2015-11-10 11:20 +0100
Message-ID<qtebU-3Kn-13@gated-at.bofh.it>
In reply to#1266219
On wto, 2015-11-10 at 04:16 +0000, Al Viro wrote:
> On Wed, Oct 14, 2015 at 02:41:57PM +0200, Lukasz Pawelczyk wrote:
> >  	int (*getprocattr)(struct task_struct *p, char *name, char
> > **value);
> > -	int (*setprocattr)(struct task_struct *p, char *name, void
> > *value,
> > -				size_t size);
> > +	int (*setprocattr)(struct task_struct *p, const struct
> > cred *f_cred,
> > +			   char *name, void *value, size_t size);
> 
> *grumble*
> 
> Why the hell is that thing taking char *name - not even const char *?

I was wondering that myself. But as this is unrelated I decided not to
change it. Do you want me to while at it?




-- 

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web