[PATCH conductor] Set aeolus user home directory to /usr/share/aeolus-conductor

Steve Linabery slinaber at redhat.com
Fri Jun 15 15:44:16 UTC 2012


On Thu, Jun 14, 2012 at 02:47:21PM -0400, John Eckersberg wrote:
> In commit b4d148e, I modified useradd to try to create /var/aeolus as
> the home directory of the aeolus user.  However, with SELinux in
> enforcing mode, useradd is not allowed by policy to create directories
> under /var.
> 
> This patch sets the home directory for the aeolus user to
> /usr/share/aeolus-conductor and removes the -m flag from useradd,
> meaning that it will not try creating that directory.  Since
> /usr/share/aeolus-conductor is provided by the contents of the
> aeolus-conductor rpm, in the end the aeolus user will have a valid
> home directory, which is all we really need.
> ---
>  aeolus-conductor.spec.in |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/aeolus-conductor.spec.in b/aeolus-conductor.spec.in
> index 1aa7a08..affb48c 100644
> --- a/aeolus-conductor.spec.in
> +++ b/aeolus-conductor.spec.in
> @@ -154,7 +154,7 @@ run aeolus-configure to configure everything.
>  getent group aeolus >/dev/null || /usr/sbin/groupadd -g 180 -r aeolus 2>/dev/null || :
>  getent passwd aeolus >/dev/null || \
>      /usr/sbin/useradd -u 180 -g aeolus -c "aeolus" \
> -    -s /sbin/nologin -r -m -d /var/aeolus aeolus 2> /dev/null || :
> +    -s /sbin/nologin -r -d /usr/share/aeolus-conductor aeolus 2> /dev/null || :
>  
>  %install
>  %{__mkdir} -p %{buildroot}
> -- 
> 1.7.10.2
> 

ACK, wfm. Pushing.

S|e



More information about the aeolus-devel mailing list