Skip to content

Commit 941f020

Browse files
authored
Merge pull request #99 from brianhlin/SOFTWARE-5478.multiuser-origin
Start XRootD with multiuser caps if necessary (SOFTWARE-5478)
2 parents c2f1cf4 + 9fe7c48 commit 941f020

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

stash-origin/image-config.d/10-stash-origin.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,16 @@ fi
1313
: "${XC_AUTH_ORIGIN_EXPORT=} ${XC_PUBLIC_ORIGIN_EXPORT=} ${XC_ORIGINEXPORT=}"
1414

1515
if [[ $XC_AUTH_ORIGIN_EXPORT ]]; then
16-
supervisord_enable stash-origin-auth
17-
supervisord_enable stash-origin-auth-cmsd
16+
if [[ -n $XC_ENABLE_MULTIUSER ]]; then
17+
supervisord_enable stash-origin-auth-privileged
18+
supervisord_enable stash-origin-auth-cmsd-privileged
19+
else
20+
supervisord_enable stash-origin-auth
21+
supervisord_enable stash-origin-auth-cmsd
22+
fi
1823
else
24+
supervisord_enable stash-origin-auth-privileged
25+
supervisord_enable stash-origin-auth-cmsd-privileged
1926
supervisord_disable stash-origin-auth
2027
supervisord_disable stash-origin-auth-cmsd
2128
fi
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[program:stash-origin-auth-cmsd-privileged]
2+
command=/sbin/capsh --caps="cap_setgid+p cap_setuid+p" -- -c "/usr/bin/cmsd -l /var/log/xrootd/cmsd.log -c /etc/xrootd/xrootd-stash-origin-auth.cfg -k fifo -s /var/run/xrootd/cmsd-stash-origin-auth.pid -n stash-origin-auth -R xrootd"
3+
directory=/var/spool/xrootd
4+
autorestart=true
5+
environment=LD_PRELOAD=/usr/lib64/libtcmalloc.so,TCMALLOC_RELEASE_RATE=10
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[program:stash-origin-auth-privileged]
2+
command=/sbin/capsh --caps="cap_setgid+p cap_setuid+p" -- -c "xrootd -c /etc/xrootd/xrootd-stash-origin-auth.cfg -k fifo -n stash-origin-auth -k %(ENV_XC_NUM_LOGROTATE)s -s /var/run/xrootd/xrootd-origin-origin-auth.pid -l /var/log/xrootd/xrootd.log -R xrootd"
3+
directory=/var/spool/xrootd
4+
autorestart=true
5+
environment=LD_PRELOAD=/usr/lib64/libtcmalloc.so,TCMALLOC_RELEASE_RATE=10

0 commit comments

Comments
 (0)