All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] [PATCH 1/1] Allow semodule to create symlink in semanage_store_t
@ 2013-11-04 21:15 Sven Vermeulen
  2013-11-11 23:14 ` Miroslav Grepl
  2013-11-13 14:19 ` Christopher J. PeBenito
  0 siblings, 2 replies; 3+ messages in thread
From: Sven Vermeulen @ 2013-11-04 21:15 UTC (permalink / raw)
  To: refpolicy

With new userspace, trying to build a SELinux policy (and load it)
fails:

~# semodule -B
libsemanage.semanage_install_active: Unable to create sybolic link from
/etc/selinux/mcs/modules/active/policy.kern to
/etc/selinux/mcs/policy/policy.28 error code 0. (Permission denied).

AVC shows a denial for the semodule command, running as semanage_t,
trying to create a lnk_file in semanage_module_t.
---
 policy/modules/system/selinuxutil.if | 1 +
 1 file changed, 1 insertion(+)

diff --git a/policy/modules/system/selinuxutil.if b/policy/modules/system/selinuxutil.if
index 3822072..e5ff626 100644
--- a/policy/modules/system/selinuxutil.if
+++ b/policy/modules/system/selinuxutil.if
@@ -1043,6 +1043,7 @@ interface(`seutil_manage_module_store',`
 	files_search_etc($1)
 	manage_dirs_pattern($1, selinux_config_t, semanage_store_t)
 	manage_files_pattern($1, semanage_store_t, semanage_store_t)
+	manage_lnk_files_pattern($1, semanage_store_t, semanage_store_t)
 	filetrans_pattern($1, selinux_config_t, semanage_store_t, dir, "modules")
 ')
 
-- 
1.8.1.5

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [refpolicy] [PATCH 1/1] Allow semodule to create symlink in semanage_store_t
  2013-11-04 21:15 [refpolicy] [PATCH 1/1] Allow semodule to create symlink in semanage_store_t Sven Vermeulen
@ 2013-11-11 23:14 ` Miroslav Grepl
  2013-11-13 14:19 ` Christopher J. PeBenito
  1 sibling, 0 replies; 3+ messages in thread
From: Miroslav Grepl @ 2013-11-11 23:14 UTC (permalink / raw)
  To: refpolicy

Dne 4.11.2013 22:15, Sven Vermeulen napsal(a):
> With new userspace, trying to build a SELinux policy (and load it)
> fails:
>
> ~# semodule -B
> libsemanage.semanage_install_active: Unable to create sybolic link from
> /etc/selinux/mcs/modules/active/policy.kern to
> /etc/selinux/mcs/policy/policy.28 error code 0. (Permission denied).
>
> AVC shows a denial for the semodule command, running as semanage_t,
> trying to create a lnk_file in semanage_module_t.
> ---
>   policy/modules/system/selinuxutil.if | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/policy/modules/system/selinuxutil.if b/policy/modules/system/selinuxutil.if
> index 3822072..e5ff626 100644
> --- a/policy/modules/system/selinuxutil.if
> +++ b/policy/modules/system/selinuxutil.if
> @@ -1043,6 +1043,7 @@ interface(`seutil_manage_module_store',`
>   	files_search_etc($1)
>   	manage_dirs_pattern($1, selinux_config_t, semanage_store_t)
>   	manage_files_pattern($1, semanage_store_t, semanage_store_t)
> +	manage_lnk_files_pattern($1, semanage_store_t, semanage_store_t)
>   	filetrans_pattern($1, selinux_config_t, semanage_store_t, dir, "modules")
>   ')
>   
Yes, it needs to be added. We have it in Fedora.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [refpolicy] [PATCH 1/1] Allow semodule to create symlink in semanage_store_t
  2013-11-04 21:15 [refpolicy] [PATCH 1/1] Allow semodule to create symlink in semanage_store_t Sven Vermeulen
  2013-11-11 23:14 ` Miroslav Grepl
@ 2013-11-13 14:19 ` Christopher J. PeBenito
  1 sibling, 0 replies; 3+ messages in thread
From: Christopher J. PeBenito @ 2013-11-13 14:19 UTC (permalink / raw)
  To: refpolicy

On 11/04/13 16:15, Sven Vermeulen wrote:
> With new userspace, trying to build a SELinux policy (and load it)
> fails:
> 
> ~# semodule -B
> libsemanage.semanage_install_active: Unable to create sybolic link from
> /etc/selinux/mcs/modules/active/policy.kern to
> /etc/selinux/mcs/policy/policy.28 error code 0. (Permission denied).
> 
> AVC shows a denial for the semodule command, running as semanage_t,
> trying to create a lnk_file in semanage_module_t.
> ---
>  policy/modules/system/selinuxutil.if | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/policy/modules/system/selinuxutil.if b/policy/modules/system/selinuxutil.if
> index 3822072..e5ff626 100644
> --- a/policy/modules/system/selinuxutil.if
> +++ b/policy/modules/system/selinuxutil.if
> @@ -1043,6 +1043,7 @@ interface(`seutil_manage_module_store',`
>  	files_search_etc($1)
>  	manage_dirs_pattern($1, selinux_config_t, semanage_store_t)
>  	manage_files_pattern($1, semanage_store_t, semanage_store_t)
> +	manage_lnk_files_pattern($1, semanage_store_t, semanage_store_t)
>  	filetrans_pattern($1, selinux_config_t, semanage_store_t, dir, "modules")
>  ')

Merged.

-- 
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-11-13 14:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-04 21:15 [refpolicy] [PATCH 1/1] Allow semodule to create symlink in semanage_store_t Sven Vermeulen
2013-11-11 23:14 ` Miroslav Grepl
2013-11-13 14:19 ` Christopher J. PeBenito

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.