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


Groups > linux.kernel > #1712755 > unrolled thread

Re: [PATCH 1/2] pstore: Make default pstorefs root dir perms 0750

Started bySergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
First post2017-08-16 10:10 +0200
Last post2017-08-16 10:10 +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/2] pstore: Make default pstorefs root dir perms 0750 Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2017-08-16 10:10 +0200

#1712755 — Re: [PATCH 1/2] pstore: Make default pstorefs root dir perms 0750

FromSergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
Date2017-08-16 10:10 +0200
SubjectRe: [PATCH 1/2] pstore: Make default pstorefs root dir perms 0750
Message-ID<uf1yN-4Ab-5@gated-at.bofh.it>
Hello,

On (08/10/17 13:36), Kees Cook wrote:
> Currently only DMESG and CONSOLE record types are protected, and it isn't
> obvious that they are using a capability check. Instead switch to explicit
> root directory mode of 0750 to keep files private by default.  This will
> allow the removal of the capability check, which was non-obvious and
> forces a process to have possibly too much privilege

it's CAP_SYSLOG, isn't it? is it too much? does chgrp require less privileges?

	-ss

> when simple post-boot chgrp for readers would be possible without it.
> 
> Signed-off-by: Kees Cook <keescook@chromium.org>
> ---
>  fs/pstore/inode.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/pstore/inode.c b/fs/pstore/inode.c
> index fefd22611cf6..f1e88b695090 100644
> --- a/fs/pstore/inode.c
> +++ b/fs/pstore/inode.c
> @@ -471,7 +471,7 @@ static int pstore_fill_super(struct super_block *sb, void *data, int silent)
>  
>  	inode = pstore_get_inode(sb);
>  	if (inode) {
> -		inode->i_mode = S_IFDIR | 0755;
> +		inode->i_mode = S_IFDIR | 0750;
>  		inode->i_op = &pstore_dir_inode_operations;
>  		inode->i_fop = &simple_dir_operations;
>  		inc_nlink(inode);
> -- 
> 2.7.4
> 

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web