summaryrefslogtreecommitdiff
path: root/privs.h
blob: 9f9cfdd0626dee927ca26138809eec7a8daf7a38 (plain)
1
2
3
4
5
6
7
8
#ifndef PRIVS_H
#define PRIVS_H

#include <stdbool.h>

extern void drop_privileges(bool enforce, uid_t uid, gid_t gid);

#endif /* PRIVS_H */
ript>
authorSabrina Dubroca <sd@queasysnail.net>2016-06-14 15:25:15 +0200
committerDavid S. Miller <davem@davemloft.net>2016-06-15 14:47:46 -0700
commit5d9649b3a524df9ccd15ac25ad6591089260fdbd (patch)
tree54cb7b03dfb4039ab3b7c988f6ad63f375c060c7
parentb196c22af5c3ff784c472c80f6fb4e5fad67b2ac (diff)
macsec: allocate sg and iv on the heap
For the crypto callbacks to work properly, we cannot have sg and iv on the stack. Use kmalloc instead, with a single allocation for aead_request + scatterlist + iv. Fixes: c09440f7dcb3 ("macsec: introduce IEEE 802.1AE driver") Signed-off-by: Sabrina Dubroca <sd@queasysnail.net> Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat