| 38 | } |
| 39 | |
| 40 | bool policy::deserialize_uid_gid(const byte_t*& _data, uint32_t& _size, uid_t& _uid, gid_t& _gid) const { |
| 41 | |
| 42 | bool its_result; |
| 43 | |
| 44 | uint32_t raw_uid; |
| 45 | its_result = deserialize_u32(_data, _size, raw_uid); |
| 46 | if (its_result) |
| 47 | _uid = static_cast<uid_t>(raw_uid); |
| 48 | else |
| 49 | return false; |
| 50 | |
| 51 | uint32_t raw_gid; |
| 52 | its_result = deserialize_u32(_data, _size, raw_gid); |
| 53 | if (its_result) |
| 54 | _gid = static_cast<gid_t>(raw_gid); |
| 55 | else |
| 56 | return false; |
| 57 | |
| 58 | return true; |
| 59 | } |
| 60 | |
| 61 | bool policy::deserialize(const byte_t*& _data, uint32_t& _size) { |
| 62 |
no outgoing calls
no test coverage detected