[apparmor] [patch 08/12] Refactor accept nodes to be common to a shared node type

Seth Arnold seth.arnold at canonical.com
Wed Aug 27 01:48:28 UTC 2014


On Mon, Aug 25, 2014 at 05:06:13PM -0700, john.johansen at canonical.com wrote:
> The shared node type will be used in the future to add new capabilities
> 
> Signed-off-by: John Johansen <john.johansen at canonical.com>
> Acked-by: Steve Beattie <steve at nxnw.org>

Acked-by: Seth Arnold <seth.arnold at canonical.com>

> +class MatchFlag: public AcceptNode {
> +public:
> +	MatchFlag(uint32_t flag, uint32_t audit): flag(flag), audit(audit) { }
> +	ostream &dump(ostream &os) { return os << "< 0x" << hex << flag << '>'; }
> +
> +	uint32_t flag;
> +	uint32_t audit;
> +};

Not introduced in this patch, but this will give output like "< 0xabcdedab>".
The space after "<" but not before ">" is odd to me. :)

Thanks
-------------- 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/20140826/450a39c8/attachment-0001.pgp>


More information about the AppArmor mailing list