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

Re: Setting file capabilites of files shipped in binary packages



On Mon, Mar 14, 2011 at 2:17 PM, Ben Hutchings <ben@decadent.org.uk> wrote:
> On Mon, 2011-03-14 at 09:17 +0100, Sebastian Harl wrote:
> [...]
>> > > Would it be fine to do that in postinst?
>> >
>> > It must be done in postinst, and you may need to fall back to setuid if
>> > the filesystem does not support setcap.
>>
>> Do you know of a way to find out if the filesystem supports setcap
>> (other than trying out ;-))?
>
> No, I don't think there's a way to do that programmatically.  You would
> just have to try capset and then chmod u+s.

Shouldn't this be done via DH instead of duplicating this code into
lots of postinsts?


-- 
Olaf


Reply to: