summaryrefslogtreecommitdiffstats
path: root/zebra/ioctl.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2018-08-10 17:35:29 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-08-14 22:02:05 +0200
commit6017c3a2e71304381af5cfa5020b4a1358ee098b (patch)
tree2b1aa729781515f759cead26ff44ca73d34b4faa /zebra/ioctl.c
parent*: rename ferr_zlog -> flog_err_sys (diff)
downloadfrr-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