capo

Crates.iocapo
lib.rscapo
version0.0.1
sourcesrc
created_at2020-06-15 08:00:48.992411
updated_at2020-07-05 00:53:37.410695
descriptionLinux capabilities interface
homepage
repository
max_upload_size
id254153
size30,334
Will Glozer (wg)

documentation

README

capo - Linux capabilities

capo provides a Rust interface to Linux capabilities(7).

Example

let caps = Caps::get()?;
caps.effective.contains(SysAdmin);

let mut caps = Caps::empty();
caps.effective.insert(SysAdmin | Syslog);
caps.permitted.insert(SysAdmin | Syslog);
caps.set()?;

License

Copyright 2020 Will Glozer

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Commit count: 0

cargo fmt