<div dir="ltr"><div><div><div>Yes, You are right. my application is running under apparmor only. <br><br></div>I tried that when i remove this security level then my application is not working. <br></div>so can suggestion me for a mid way which leads to both?<br>
<br></div>criu under apparmor security level ? or can i avoid such security for while when i dumping the process then again make active?<br></div><div class="gmail_extra"><br clear="all"><div><b>Thanks & Regards</b>:<div>
Krishan Berwal</div><div><a href="mailto:krishanberwal1988@gmail.com" target="_blank">krishanberwal1988@gmail.com</a></div></div>
<br><br><div class="gmail_quote">On Mon, Apr 28, 2014 at 5:34 PM, Cyrill Gorcunov <span dir="ltr"><<a href="mailto:gorcunov@gmail.com" target="_blank">gorcunov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="">On Mon, Apr 28, 2014 at 02:53:23PM +0530, Krishan Berwal wrote:<br>
> Dear sir/mam,<br>
><br>
> i am showing what is actual output after follow the procedure:<br>
><br>
</div>> root@3451eead64b2:~/kk#A setsid ./abc.shA < /dev/null &> abc.log &<br>
<div class="">> [2] 119<br>
> root@3451eead64b2:~/kk# ps -C abc.sh<br>
</div>> A PID TTYA A A A A A A A A TIME CMD<br>
> A A 42 pts/0A A A 00:00:00 abc.sh<br>
> [2]-A DoneA A A A A A A A A A A A A A A A A A A setsid ./abc.sh <<br>
<div class="">> /dev/null &>abc.log<br>
> root@3451eead64b2:~/kk# criu dump -vvvv -o dump.log -t 42 --shell-job &&<br>
> echo OK<br>
</div>> root@3451eead64b2:~/kk#A criu restore -vvvv -o restore.log -t 42<br>
> --shell-job<br>
> root@3451eead64b2:~/kk# ls<br>
> abc.logA abc.shA dump.logA restore.log<br>
<div class="">> root@3451eead64b2:~/kk# cat dump.log<br>
> (00.000090) ========================================<br>
> (00.000150) Dumping processes (pid: 42)<br>
> (00.000157) ========================================<br>
> (00.000312) Error (kerndat.c:45): Can't stat self map_files: Operation not<br>
> permitted<br>
<br>
</div>If you're running under root user and get EPERM, it looks like you've some<br>
kind of additional layer of restriction, maybe selinux/apparmor or someone<br>
else is blocking criu from execution.<br>
</blockquote></div><br></div>