Re: [PATCH 1/2] capabilities: cleanups
From: Andrew Morton
Date: Wed May 12 2004 - 23:16:49 EST
Andy Lutomirski <luto@xxxxxxxxxxxxx> wrote:
>
> --- linux-2.6.6-mm1/include/linux/binfmts.h~cap_1_cleanup 2004-05-10 23:52:05.000000000 -0700
> +++ linux-2.6.6-mm1/include/linux/binfmts.h 2004-05-11 00:58:13.000000000 -0700
> @@ -20,6 +20,9 @@
> /*
> * This structure is used to hold the arguments that are used when loading binaries.
> */
> +#define BINPRM_SEC_SETUID 1
> +#define BINPRM_SEC_SETGID 2
> +#define BINPRM_SEC_SECUREEXEC 4
> struct linux_binprm{
> char buf[BINPRM_BUF_SIZE];
> struct page *page[MAX_ARG_PAGES];
> @@ -27,8 +30,9 @@
> unsigned long p; /* current top of mem */
> int sh_bang;
> struct file * file;
> - int e_uid, e_gid;
> - kernel_cap_t cap_inheritable, cap_permitted, cap_effective;
> + int set_uid, set_gid;
> + int secflags;
> + kernel_cap_t cap_inheritable, cap_permitted;
security/dummy.c: In function `dummy_bprm_apply_creds':
security/dummy.c:176: structure has no member named `e_uid'
security/dummy.c:176: structure has no member named `e_gid'
security/dummy.c:180: structure has no member named `e_uid'
security/dummy.c:181: structure has no member named `e_gid'
security/dummy.c:185: structure has no member named `e_uid'
security/dummy.c:186: structure has no member named `e_gid'
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/