mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-23 10:40:43 +01:00
start: Support cpuset
This commit is contained in:
@@ -191,6 +191,13 @@ for _jail in ${JAILS}; do
|
|||||||
done < "${bastille_jailsdir}/${_jail}/rctl.conf"
|
done < "${bastille_jailsdir}/${_jail}/rctl.conf"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Add cpuset limits
|
||||||
|
if [ -s "${bastille_jailsdir}/${_jail}/cpuset.conf" ]; then
|
||||||
|
while read _limits; do
|
||||||
|
cpuset -l "${_limits}" -j "${_jail}"
|
||||||
|
done < "${bastille_jailsdir}/${_jail}/cpuset.conf"
|
||||||
|
fi
|
||||||
|
|
||||||
# Add rdr rules
|
# Add rdr rules
|
||||||
if [ -s "${bastille_jailsdir}/${_jail}/rdr.conf" ]; then
|
if [ -s "${bastille_jailsdir}/${_jail}/rdr.conf" ]; then
|
||||||
while read _rules; do
|
while read _rules; do
|
||||||
|
|||||||
Reference in New Issue
Block a user