[RFC][PATCH] (version 2) Introduce /proc/$$/loginuid

David Woodhouse dwmw2 at infradead.org
Tue Jan 18 13:50:35 UTC 2005


On Mon, 2005-01-17 at 12:31 -0600, Serge Hallyn wrote:
> --- linux-2.6.11-rc1-bk5.orig/init/main.c       2005-01-17
> 12:07:24.000000000 -0600
> +++ linux-2.6.11-rc1-bk5/init/main.c    2005-01-17 12:08:32.000000000
> -0600
> @@ -674,6 +674,8 @@ static int init(void * unused)
>         free_initmem();
>         unlock_kernel();
>  
> +       current->loginuid = -1;
> +
>         system_state = SYSTEM_RUNNING;
>         numa_default_policy();

Shouldn't this go into include/linux/init_task.h instead? And perhaps be
in the previous patch (audit-loginuid-into-taskstruct) instead of this
one?

-- 
dwmw2




More information about the Linux-audit mailing list