Re: [Libcg-devel] [PATCH 3/4] cg_chmod_file: Use owner permissions as umask for other permissions

2011-05-26 Thread Jan Safranek
Hi Michal, would you mind re-sending the whole patchset with latest adjustements? The idea seems to be fine for me, but I'd like to see all the patches on one place, I got lost in email threads :) Thanks in advance Jan

[Libcg-devel] [PATCH 1/3] Add file and directory permissions into cgroup

2011-05-26 Thread Michal Hocko
Let's add file permission for tasks and file and directory permissions for control files into cgroup so that we can add them into configuration files. Permissions are initialized to NO_PERMS (unsigned -1 which doesn't represent any valid permissions) to reflect that no value is set. Let's also add

[Libcg-devel] [PATCH 3/3] chmod_file: Introduce intelligent file permissions setting

2011-05-26 Thread Michal Hocko
There is no general rule on which permissions make sense for files in different subsystems. Nevertheless the kernel creates those files with the maximum allowed permissions for owner so we should use its part as an umask for group and others permissions as well. This means that if we specify 777 fo

[Libcg-devel] [PATCH 0/3 V3] Consolidate permissions configuration

2011-05-26 Thread Michal Hocko
This is a third iteration RFC for permissions setting consolidation. It needs some cleanup (proper declaration of new API, documentation, etc.). Currently we cannot specify permissions for subsystems files and directories in the configuration file while we can do that by cgcreate tool. The tool, h

[Libcg-devel] [PATCH 2/3] cgconfig: enable setting file permissions

2011-05-26 Thread Michal Hocko
We cannot setup file or directory permissions in (/etc/cgconfig.conf) configuration file while we can do this with available tools. This patch adds new two options fperm, dperm. Task section supports only fperm, because there are no directories involved while admin section supports both of them. E