Resource Type: file_capability
- Defined in:
- lib/puppet/type/file_capability.rb
- Providers:
-
linux
Summary
Set file capabilities on Linux.Overview
File capabilities allow running a program with elevated privileges without the need to make that executable a setuid binary. Capabilities allow a more fine grained definition of privileges for a program. See the capabilities(7) manpage for an overview of Linux capabilities.
The capability parameter can be a string if only one capability should be defined and an array for managing multiple capabilities.
The implemented provider uses the ‘setcap’ program to check if the current and the defined capabilities are in sync. In some cases the textual represemtation may look different when in fact the capabilities are correctly set. By using the ‘setcap’ program this is handled correctly by the operating system.