1*8dd5e09dSSadaf Ebrahimi /* libdrop_ambient.c --
2*8dd5e09dSSadaf Ebrahimi * Copyright 2020 Red Hat Inc.
3*8dd5e09dSSadaf Ebrahimi * All Rights Reserved.
4*8dd5e09dSSadaf Ebrahimi *
5*8dd5e09dSSadaf Ebrahimi * This library is free software; you can redistribute it and/or
6*8dd5e09dSSadaf Ebrahimi * modify it under the terms of the GNU Lesser General Public
7*8dd5e09dSSadaf Ebrahimi * License as published by the Free Software Foundation; either
8*8dd5e09dSSadaf Ebrahimi * version 2.1 of the License, or (at your option) any later version.
9*8dd5e09dSSadaf Ebrahimi *
10*8dd5e09dSSadaf Ebrahimi * This library is distributed in the hope that it will be useful,
11*8dd5e09dSSadaf Ebrahimi * but WITHOUT ANY WARRANTY; without even the implied warranty of
12*8dd5e09dSSadaf Ebrahimi * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13*8dd5e09dSSadaf Ebrahimi * Lesser General Public License for more details.
14*8dd5e09dSSadaf Ebrahimi *
15*8dd5e09dSSadaf Ebrahimi * You should have received a copy of the GNU Lesser General Public License
16*8dd5e09dSSadaf Ebrahimi * along with this program; see the file COPYING.LIB. If not, write to the
17*8dd5e09dSSadaf Ebrahimi * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor
18*8dd5e09dSSadaf Ebrahimi * Boston, MA 02110-1335, USA.
19*8dd5e09dSSadaf Ebrahimi *
20*8dd5e09dSSadaf Ebrahimi * Authors:
21*8dd5e09dSSadaf Ebrahimi * Steve Grubb <[email protected]>
22*8dd5e09dSSadaf Ebrahimi */
23*8dd5e09dSSadaf Ebrahimi
24*8dd5e09dSSadaf Ebrahimi #include "config.h"
25*8dd5e09dSSadaf Ebrahimi #include <sys/prctl.h>
26*8dd5e09dSSadaf Ebrahimi
init(void)27*8dd5e09dSSadaf Ebrahimi void __attribute__ ((constructor)) init(void)
28*8dd5e09dSSadaf Ebrahimi {
29*8dd5e09dSSadaf Ebrahimi prctl(PR_CAP_AMBIENT, PR_CAP_AMBIENT_CLEAR_ALL, 0, 0, 0);
30*8dd5e09dSSadaf Ebrahimi }
31*8dd5e09dSSadaf Ebrahimi
32