[apparmor] [patch] apparmor.d.pod: add details about append and creating files

Seth Arnold seth.arnold at canonical.com
Fri Feb 12 01:22:13 UTC 2016


On Sun, Jan 10, 2016 at 06:19:56PM +0100, Christian Boltz wrote:
> I hope my description is correct. If not, please give me a better text ;-)

Funny thing; I didn't see any O_APPEND tests in our test suite. This
description didn't sound correct, so I went testing, and I don't think
that 'a' is actually useful.

https://bugs.launchpad.net/apparmor/+bug/1544791

I suggest holding off on this patch until we figure out what went wrong.

Thanks

> +++ parser/apparmor.d.pod       2016-01-10 18:00:49.985190030 +0100
> @@ -403,7 +407,10 @@
>  Append mode will prevent an application from opening the file for write unless
>  it passes the O_APPEND parameter flag on open.
>  
> -The mode conflicts with Write mode.
> +Append mode also allows to create a file using creat() or open() with the
> +O_APPEND flag. However, you'll need 'w' when using open() with O_RW | O_CREATE.
> +
> +This mode conflicts with Write mode.
>  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20160211/344b921c/attachment.pgp>


More information about the AppArmor mailing list