[fpc-pascal] linux ACL

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Fri Jan 23 12:33:51 CET 2015


Henry Vermaak wrote:
> On Fri, Jan 23, 2015 at 11:37:05AM +0100, Koenraad Lelong wrote:
>> Hi,
>>
>> I need to set ACL's on files on Linux. Is there something ready-made
>> in fpc ? Or should I use a TProcess and execute a setfacl that way ?
> 
> Easiest would be to create a binding for libacl.  ACL is specified by
> POSIX, so there's nothing stopping fpc from implementing it natively,
> though.

Would this require root access? As an aside, I've used capabilities to 
allow a program to listen to a low-numbered TCP port and found that 
setting it uid root was incompatible with GTK (Qt was fine).

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]



More information about the fpc-pascal mailing list