Current version
Git/Latestdiff: 1.5.6
Latest Snapshots
Produced after each commit or rebase to new upstream version
GIT
RSBAC source code, can be unstable sometimes
No events planned
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
wiki:experiences:igraltist:setup [2012/06/07 12:31] 127.0.0.1 (old revision restored) |
wiki:experiences:igraltist:setup [2012/07/19 14:23] 127.0.0.1 (old revision restored) |
||
---|---|---|---|
Line 115: | Line 115: | ||
} | } | ||
</code> | </code> | ||
+ | |||
+ | |||
+ | |||
Line 121: | Line 124: | ||
A new file `/etc/apt/apt.d/80rsbac` is needed. | A new file `/etc/apt/apt.d/80rsbac` is needed. | ||
+ | Copy & paste it or download here [[http://kasten-edv.de/download/rsbac/profile/80rsbac|80rsbac]]. | ||
- | Not finish | + | Not yet tested |
<code bash> | <code bash> | ||
DPkg::Post-Invoke { “ | DPkg::Post-Invoke { “ | ||
- | if [ | + | rsbac_attributes_initial="/etc/rsbac/packages/${CATEGORY}/${PN}/${PF}.sh" |
+ | rsbac_attributes="/home/admins/updater/packages/${CATEGORY}/${PN}/${PF}.sh" | ||
+ | einfo "Applying rsbac attributes:"; | ||
+ | # first policy | ||
+ | if [ -f "${rsbac_attributes_initial}" ]; then | ||
+ | sh ${rsbac_attributes_initial} | ||
+ | else | ||
+ | echo "No rsbac attribute initial available" | ||
+ | fi | ||
+ | # second which found | ||
+ | if [ -f "${rsbac_attributes}" ]; then | ||
+ | sh ${rsbac_attributes} | ||
+ | else | ||
+ | echo "No rsbac attribute available" | ||
+ | fi | ||
} | } | ||
+ | </code> | ||
+ | |||
+ | ===== NFS Portage ===== | ||
+ | |||
+ | When using nfs4 store to manage the portage tree then some modification have to do. | ||
+ | |||
+ | * Add user updater (uid=410,gid=410) to nfs4 server. This example is when running a debian as portage nfs4 server. | ||
+ | <code bash> | ||
+ | addgroup --gid 410 updater | ||
+ | adduser --home /srv/nfs4/portage --gid 410 --uid 410 --disabled-password --disabled-login updater | ||
+ | </code> | ||
+ | * Add portage tree to exportfs | ||
+ | <code bash> | ||
+ | /srv/nfs4/portage 192.168.0.0/24(rw,sync,insecure,nohide,no_subtree_check,root_squash) | ||
+ | </code> | ||
+ | *Add portage tree to fstab | ||
+ | <code bash> | ||
+ | /mnt/portage /srv/nfs4/portage none bind 0 0 | ||
+ | </code> | ||
+ | |||
+ | |||
+ |