Re: [PATCH 2/5] setpriv: proxy function checking whether a capability is set

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jun 24, 2017 at 7:04 AM, Patrick Steinhardt <ps@xxxxxx> wrote:
> The loop in `print_caps` iterates over every capability, checks whether
> it is set and, if so, prints out its name. Currently, the checking and
> printing is rather intertwined, making it harder to extend the check
> whether we own a capability.
>
> Prepare code for the introduction of ambient capabilities by
> disentangling the code checking for a capability and printing code. A
> new function `has_cap` is introduced and `print_caps` will now simply
> call out to it and only handle printing itself. This easily allows to
> extend the capability check based on which capability set is queried.
>

Reviewed-by: Andy Lutomirski <luto@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux