2017-08-25 16:51:24

by Guido Trentalancia

[permalink] [raw]
Subject: [refpolicy] [PATCH] libmtp: read symlinks in user home directories

Let libmtp read symbolic links in the user home
directories, if the "libmtp_enable_home_dirs"
boolean is enabled.

Signed-off-by: Guido Trentalancia <[email protected]>
---
policy/modules/contrib/libmtp.te | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

--- a/policy/modules/contrib/libmtp.te 2017-05-23 21:34:17.370592081 +0200
+++ b/policy/modules/contrib/libmtp.te 2017-08-25 18:42:18.857568428 +0200
@@ -7,8 +7,8 @@ policy_module(libmtp, 1.0.0)

## <desc>
## <p>
-## Determine whether libmtp can
-## manage the user home directories
+## Determine whether libmtp can read
+## and manage the user home directories
## and files.
## </p>
## </desc>
@@ -55,5 +55,6 @@ optional_policy(`

tunable_policy(`libmtp_enable_home_dirs',`
userdom_manage_user_home_content_files(libmtp_t)
+ userdom_read_user_home_content_symlinks(libmtp_t)
userdom_user_home_dir_filetrans_user_home_content(libmtp_t, file )
')


2017-08-29 22:47:00

by Chris PeBenito

[permalink] [raw]
Subject: [refpolicy] [PATCH] libmtp: read symlinks in user home directories

On 08/25/2017 12:51 PM, Guido Trentalancia via refpolicy wrote:
> Let libmtp read symbolic links in the user home
> directories, if the "libmtp_enable_home_dirs"
> boolean is enabled.
>
> Signed-off-by: Guido Trentalancia <[email protected]>
> ---
> policy/modules/contrib/libmtp.te | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> --- a/policy/modules/contrib/libmtp.te 2017-05-23 21:34:17.370592081 +0200
> +++ b/policy/modules/contrib/libmtp.te 2017-08-25 18:42:18.857568428 +0200
> @@ -7,8 +7,8 @@ policy_module(libmtp, 1.0.0)
>
> ## <desc>
> ## <p>
> -## Determine whether libmtp can
> -## manage the user home directories
> +## Determine whether libmtp can read
> +## and manage the user home directories
> ## and files.
> ## </p>
> ## </desc>
> @@ -55,5 +55,6 @@ optional_policy(`
>
> tunable_policy(`libmtp_enable_home_dirs',`
> userdom_manage_user_home_content_files(libmtp_t)
> + userdom_read_user_home_content_symlinks(libmtp_t)
> userdom_user_home_dir_filetrans_user_home_content(libmtp_t, file )
> ')

Merged.


--
Chris PeBenito