Markus Weich:
> Sounds logical, i tried to reconstruct your thinking, been to 
> http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-precise.git;a=tree, but 
> didn't find the .c/.h file, where I thought I could find the 
> information. So I have to believe you. Nervertheless could you give me 
> some hint how to get this without cloning the whole 
> ubuntu/ubuntu-precise.git tree?

See
http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-precise.git;a=blob;f=fs/namei.c;h=f3069a3b6487d1457a8dae860b848f5737facad2;hb=HEAD
and you will find unlinkat systemcall.


> Btw, dmesg showed
> "non-accessible hardlink creation was attempted by: rm (fsuid 1000)"
>    --> aufs was called by rm to create a hardlink white-out file??

Great, you found what we want.
It must be Yama LSM and
/proc/sys/kernel/yama/protected_nonaccess_hardlinks.
Write 0 into /proc/.../protected_nonaccess_hardlinks and your rm will
succeed.


J. R. Okajima

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk

Reply via email to