[JIRA] Updated: (SSPCPP-353) Package the SP to run as non-root user

Kaspar Brand (JIRA) noreply at shibboleth.net
Tue Aug 16 13:45:26 BST 2011


     [ https://issues.shibboleth.net/jira/browse/SSPCPP-353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kaspar Brand updated SSPCPP-353:
--------------------------------

    Attachment: shibd-runuser.diff

I would very much like to see this happen for 2.5... so I gave it a try on Red Hat/CentOS.

Attached is a proof of concept, which seems to do the trick. It only deals with Red Hat so far - and I'm not sure if the changes to the spec file are applicable verbatim to other distros as well (or if they should be wrapped by %if "%{_vendor}" == "redhat").

> Package the SP to run as non-root user
> --------------------------------------
>
>                 Key: SSPCPP-353
>                 URL: https://issues.shibboleth.net/jira/browse/SSPCPP-353
>             Project: Shibboleth SP - C++
>          Issue Type: Improvement
>          Components: Installation
>    Affects Versions: 2.4, 2.4.1, 2.4.2, 2.4.3
>         Environment: CentOS 5.5 / Shibboleth 2.3.1 from openSUSE repos
>            Reporter: Takeshi NISHIMURA
>            Assignee: Scott Cantor
>            Priority: Minor
>         Attachments: shibd-runuser.diff
>
>   Original Estimate: 1 week
>  Remaining Estimate: 1 week
>
> Updating Shibboleth SP by "yum update" changes owner:group and permissions of /var/{run,log}/shibboleth to the default (root:root and rwxrwxr-x) even if they already exist. Please preserve these permissions on updates if they already exist.
> I am running shibd with user "shibboleth".
> I am using those directories with following permissions:
> rwxrwxr-x root:shibboleth /var/log/shibboleth
> rwxrwxr-x root:shibboleth /var/run/shibboleth
> , and had troubles on every recent updates.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the commits mailing list