On Tue 17-05-11 19:31:21, Dhaval Giani wrote: > On Tue, May 17, 2011 at 6:09 PM, Michal Hocko <mho...@suse.cz> wrote: > > On Tue 17-05-11 12:57:11, Jan Safranek wrote: > >> On 05/16/2011 02:07 PM, Michal Hocko wrote: > > [...] > >> > The patch checks whether uid differs from gid either for task or admin > >> > and automatically changes the file and directory permissions to be user > >> > and group read&write (and executable for directories). > >> > >> Why is gid and uid compared together? > > > > The point is that if you specigy different gui than uid you are doing > > that probably because you want to grant access to that group which is > > not possible without group permissions. My cgroups tools are not setuid > > so I cannot use cgexec to any groups with this layout. > > > > That still does not mean that the uid and gid can be directly > compared, and if there is even a direct relationship. You have to > setup the group permissions regardless.
So if I understand you correctly, you are saying that if I want to use libcgroup package and its tools I have to setup permissions manually? If that is the case then I would consider the commit which changes the permissions setting as regression. SLE11-SP1 uses libcgroup 0.34 where I can use cgexec without any issues, OpenSUSE 11.3 has 0.36 is safe as well. Debian (current testing) has 0.37.1 (which contains fa3d180b) doesn't work that way anymore. Please note that the solution proposed here is just a workaround. I do not like it as well. If you guys say that the the stable release can introduce configuration enhancements then I am fine with the perm setting in configuration as well. I am almost ready with it. -- Michal Hocko SUSE Labs SUSE LINUX s.r.o. Lihovarska 1060/12 190 00 Praha 9 Czech Republic ------------------------------------------------------------------------------ What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel