Handle different levels of rdcd privilege

Depending on how a user starts rdcd, rdcd will either have
full monitor/control capabilities or have just monitoring
capabilties.

The only 2 user ids allowed are "rdc" and root.

Change-Id: Ie296a2f68c9723bef5945b1af1070ef99eeea93b
This commit is contained in:
Chris Freehill
2020-03-20 10:32:25 -05:00
parent 7ee29b6cdd
commit a6acf24ae7
5 changed files with 235 additions and 41 deletions
Regular → Executable
+3 -3
View File
@@ -20,8 +20,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
#ifndef RDC_RDC_H_
#define RDC_RDC_H_
#ifndef INCLUDE_RDC_RDC_H_
#define INCLUDE_RDC_RDC_H_
#include <cstdint>
@@ -740,4 +740,4 @@ const char* rdc_status_string(rdc_status_t status);
*/
const char* field_id_string(uint32_t field_id);
#endif // RDC_RDC_H_
#endif // INCLUDE_RDC_RDC_H_