[apparmor] Skippable files

Nicolas Valcárcel nvalcarcel at corpb2c.com
Mon May 28 16:23:28 UTC 2012


Hi, i'm working on rewriting to python3 some apparmor tools, but i'm not a
perl expert, nor know apparmor in deep, so i got a stopper here that i hope
you can help me with.

In Immunix/AppArmor.pm there is a function isSkippableFile which has a
regexp i don't understand:
$path =~ /(^|\/)\.[^\/]*$/               <--- this one i don't understand
$path =~ /\.rpm(save|new)$/       <--- this would be anything ending in
.rpmsave or .rpmnew?
$path =~ /\.dpkg-(old|new)$/       <--- this would be anything ending in
.dpkg-old or .dpkg-new?
$path =~ /\.swp$/                      <--- this would be anything ending
in .swp?
$path =~ /\~$/);                         <--- this would be anything ending
in ~?

Thanks in advance.

-- 
Nicolas Valcárcel
Gerente IT / CTO
Celular: (511) 976 330 707
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20120528/5d4f876e/attachment.html>


More information about the AppArmor mailing list