]> git.puffer.fish Git - mirror/frr.git/commit
lib: Allow downgrade of all caps when none are specified 11488/head
authorDonald Sharp <sharpd@nvidia.com>
Tue, 28 Jun 2022 14:26:52 +0000 (10:26 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 29 Jun 2022 18:40:57 +0000 (14:40 -0400)
commit88be4045c9e09d9b36952ed594e4bbc19633deba
tree7d6e223036ecafdc422aa360c9128f03968a97e3
parent03c95c540f1884dcaf74a81bc309fc51547054dd
lib: Allow downgrade of all caps when none are specified

Staticd when run tells privs.c that it does not need any
priviledges.  The lib/privs.c code was not downgrading
any and all permissions it may have been given at startup.

Since we don't need any let's actually tell the system that
FRR does not need the capabilities anymore in the case
where a daemon does not ask for any cap's.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
lib/privs.c