Messages in this thread | | | From | Jordi Pujol <> | Subject | Re: [RFC/RFT PATCH] cgroup: enable write permission for the group of users | Date | Wed, 2 Feb 2011 09:45:19 +0100 |
| |
agree, thanks for your replies,
To be polite, for if any user finds this thread, here is a solution, the code added to the daemon script
set_writeperm_usergroups() { local mountpoint f st_mode mountpoint="$(awk '$1 == "cgroup" {print $2}' "/proc/mounts")" if [ ! -d "${mountpoint}" ]; then log_warning_msg "Can't find cgroups mountpoint" return fi while read f; do if st_mode="0x$(stat --format='%a' "${f}")" && \ [ $((${st_mode} & 0x20)) -eq 0 ]; then chmod g+w "${f}" fi done << EOF $(find "${mountpoint}" -type f -perm '-u=w') EOF }
Regards,
Jordi Pujol
Live never ending Tale GNU/Linux Live forever! http://livenet.selfip.com
| |