diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2018-08-10 17:35:29 +0200 | 
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-08-14 20:02:05 +0000 | 
| commit | 6017c3a2e71304381af5cfa5020b4a1358ee098b (patch) | |
| tree | 2b1aa729781515f759cead26ff44ca73d34b4faa /zebra/ioctl.c | |
| parent | 09c866e34dd6f1725ff5a2354017c13485c2c755 (diff) | |
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
