-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
## generated with: | ||
## docker run --rm debian:stable-slim bash -c "apt update && apt -y install sudo curl && curl \"https://lhcathome.cern.ch/lhcathome/download/prepare_theory_native_environment\" | bash && tail -vn +0 /etc/sudoers.d/*" | ||
|
||
# save this file as '/etc/sudoers.d/50-lhcathome_boinc_theory_native' | ||
# ownership must be 'root:root' and access rights must be '-r--r-----' | ||
# '@includedir /etc/sudoers.d' must be enabled in /etc/sudoers | ||
|
||
# regular expressions are enclosed between '^' and '$' | ||
# this is supported since sudo version 1.9.10 | ||
# for more information read 'man sudoers' | ||
|
||
# the regex patterns given here must match the command arguments in the calling script | ||
# missing/additional arguments or an argument order not in sync causes a command to be rejected | ||
|
||
# the commands are permitted for the local group 'boinc' | ||
# ensure the calling user is a member of that group | ||
|
||
|
||
Cmnd_Alias LHCATHOMEBOINC_01 = /usr/bin/cat ^/etc/sudoers.d/50-lhcathome_boinc_theory_native$ | ||
Cmnd_Alias LHCATHOMEBOINC_02 = /usr/bin/systemctl ^(freeze|thaw) Theory_[-a-zA-Z0-9_]+\.scope$ | ||
Cmnd_Alias LHCATHOMEBOINC_03 = /usr/bin/systemd-run ^--scope -u [a-zA-Z0-9_-]+ -p BindsTo=[a-zA-Z0-9_\.@-]+ -p After=[a-zA-Z0-9_\.@-]+ --slice-inherit --uid=[a-zA-Z0-9_-]+ --gid=boinc --same-dir -q -G /[a-zA-Z0-9_\./-]+/(runc|runc\.new|runc\.old) --root state run -b cernvm [a-zA-Z0-9_-]+$ | ||
|
||
%boinc ALL = (ALL) NOPASSWD: LHCATHOMEBOINC_01, LHCATHOMEBOINC_02, LHCATHOMEBOINC_03 |