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 */
d class='ctrl'>
authorJuergen Gross <jgross@suse.com>2016-06-23 07:12:27 +0200
committerDavid Vrabel <david.vrabel@citrix.com>2016-06-23 11:36:15 +0100
commit1cf38741308c64d08553602b3374fb39224eeb5a (patch)
tree4ebba7662d00f892e66bdd4cc9eb0fdd65f57c52
parent842775f1509054ea969f1787f38d6a0ec2ccfaba (diff)
x86/xen: fix upper bound of pmd loop in xen_cleanhighmap()
xen_cleanhighmap() is operating on level2_kernel_pgt only. The upper bound of the loop setting non-kernel-image entries to zero should not exceed the size of level2_kernel_pgt. Reported-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Juergen Gross <jgross@suse.com> Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Diffstat