FlatImage
A configurable Linux containerization system
Loading...
Searching...
No Matches
permissions.hpp File Reference

Manages the permissions reserved space. More...

#include <map>
#include <cstring>
#include <set>
#include <ranges>
#include "reserved.hpp"
#include "../std/enum.hpp"
#include "../std/expected.hpp"
Include dependency graph for permissions.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ns_reserved::ns_permissions::Permissions
 Manages FlatImage permissions stored in reserved space. More...
 

Namespaces

namespace  ns_reserved::ns_permissions
 Permission bitfield management in reserved space.
 
namespace  ns_reserved
 Management of ELF binary reserved space for configuration storage.
 

Typedefs

using ns_reserved::ns_permissions::Bits = uint64_t
 

Functions

 ns_reserved::ns_permissions::ENUM (Permission, ALL, HOME, MEDIA, AUDIO, WAYLAND, XORG, DBUS_USER, DBUS_SYSTEM, UDEV, USB, INPUT, GPU, NETWORK, DEV, SHM, OPTICAL)
 
Value< void > ns_reserved::ns_permissions::bit_set (Bits &bits, Permission const &permission, bool value) noexcept
 Sets a bit permission with the target value.
 
std::set< std::string > ns_reserved::ns_permissions::to_strings (Bits const &bits) noexcept
 Creates a set of lowercase string permission representations.
 
Value< void > ns_reserved::ns_permissions::write (fs::path const &path_file_binary, Bits const &bits) noexcept
 Write the Bits struct to the given binary.
 
Value< Bits > ns_reserved::ns_permissions::read (fs::path const &path_file_binary) noexcept
 Read the Bits struct from the given binary.
 

Variables

std::map< Permission, Bits > const ns_reserved::ns_permissions::permission_mask
 

Detailed Description

Manages the permissions reserved space.

Author
Ruan Formigoni

Definition in file permissions.hpp.