94356db8ac94f5a1c9acae3496eadcb4cc7b34b0
Stefan Schuermans begin of permissioner confi...

Stefan Schuermans authored 4 years ago

1) #ifndef PERMISSIONS_H
2) #define PERMISSIONS_H
3) 
Stefan Schuermans permission parsing

Stefan Schuermans authored 4 years ago

4) #include <cstdint>
Stefan Schuermans begin of permissioner confi...

Stefan Schuermans authored 4 years ago

5) #include <string>
6) 
7) /// permissions configuration
8) class Permissions {
9) public:
Stefan Schuermans permission parsing

Stefan Schuermans authored 4 years ago

10)   typedef uint64_t Flags;
11) 
12)   static const Flags flagRead = 01;
13)   static const Flags flagWrite = 02;
14)   static const Flags flagExecute = 04;
15)   static const Flags flagOther = 01;
16)   static const Flags flagGroup = 010;
17)   static const Flags flagUser = 0100;
18) 
Stefan Schuermans begin of permissioner confi...

Stefan Schuermans authored 4 years ago

19)   /**
20)    * @brief parse permissions parameters
21)    * @param[in] parmStr parameter string
22)    * @throws std::exception if something goes wrong
23)    */
24)   void parseParams(std::string const &paramStr);
25) 
26) protected:
Stefan Schuermans permission parsing

Stefan Schuermans authored 4 years ago

27)   Flags set = 0;       ///< permissions to set
28)   Flags setCond = 0;   ///< permissions to set conditionally on usrexec/dir
29)   Flags clear = 0;     ///< permissions to clear
30)   Flags clearCond = 0; ///< permissions to clear conditionally on usrexec/dir