diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2018-08-10 17:35:29 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-08-14 22:02:05 +0200 |
commit | 6017c3a2e71304381af5cfa5020b4a1358ee098b (patch) | |
tree | 2b1aa729781515f759cead26ff44ca73d34b4faa /zebra/ioctl.c | |
parent | *: rename ferr_zlog -> flog_err_sys (diff) | |
download | frr-6017c3a2e71304381af5cfa5020b4a1358ee098b.tar.xz frr-6017c3a2e71304381af5cfa5020b4a1358ee098b.zip |
lib: add frr_elevate_privs() wrapper
Used as:
frr_elevate_privs(&my_privs) {
... code ...
}
and handles privilege raise/lower automatically in conjunction with the
C expression block. This makes it impossible to accidentally exit a
function with privileges raised (and then running a whole bunch of other
code with privs.)
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'zebra/ioctl.c')
0 files changed, 0 insertions, 0 deletions