On 2013/7/29 15:14, Libo Chen wrote:
> 

Hi Ivana,

        what do you think about this patch ?


> example cgrules.conf:
> 
> root:/home/clb/test.sh   cpu  test
> 
> step:
> 1. cd /home/clb
> 2. cgexec ./test.sh
> 
> Actual, the test.sh didn`t attach to test cgroup.
> 
> Signed-off-by: Libo Chen <clbchenlibo.c...@huawei.com>
> ---
>  src/api.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/api.c b/src/api.c
> index e5e1959..c241f35 100644
> --- a/src/api.c
> +++ b/src/api.c
> @@ -696,6 +696,7 @@ static int cgroup_parse_rules(bool cache, uid_t muid,
>                               }
> 
>                               mproc_base = cgroup_basename(mprocname);
> +                             procname = cgroup_basename(procname);
>                               if (strcmp(mprocname, procname) &&
>                                       strcmp(mproc_base, procname)) {
>                                       uid = CGRULE_INVALID;
> 



------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Libcg-devel mailing list
Libcg-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to