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 */
>mode:
authorBoris Brezillon <boris.brezillon@free-electrons.com>2016-09-16 16:59:19 +0200
committerRichard Weinberger <richard@nod.at>2016-10-02 22:48:14 +0200
commit7b6b749b125a93d673ba12977007dfbd65a61c32 (patch)
tree75de2e3cad32f5d09b5799974cf1fcda113cde3b
parent91f4285fe389a2729efcd5db642d7652d8f27a40 (diff)
UBI: move the global ech and vidh variables into struct ubi_attach_info
Even if it works fine with those global variables, attaching the temporary ech and vidh objects used during UBI scan to the ubi_attach_info object sounds like a more future-proof option. For example, attaching several UBI devices in parallel is prevented by this use of global variable. And also because global variables should be avoided in general. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat