Regenerate files after merging AppArmor integration.

This commit is contained in:
Todd C. Miller
2022-05-27 08:30:34 -06:00
parent 402fc832fa
commit 9bb288d10e
7 changed files with 3205 additions and 3119 deletions

26
configure vendored
View File

@@ -835,6 +835,7 @@ mansectmisc
mansectform mansectform
mansectsu mansectsu
devdir devdir
AAMAN
SEMAN SEMAN
PSMAN PSMAN
LCMAN LCMAN
@@ -1038,6 +1039,7 @@ enable_shared_libutil
enable_tmpfiles_d enable_tmpfiles_d
enable_devsearch enable_devsearch
with_selinux with_selinux
with_apparmor
enable_sasl enable_sasl
enable_timestamp_type enable_timestamp_type
enable_offensive_insults enable_offensive_insults
@@ -1883,6 +1885,7 @@ Optional Packages:
--with-man manual pages use man macros --with-man manual pages use man macros
--with-mdoc manual pages use mdoc macros --with-mdoc manual pages use mdoc macros
--with-selinux enable SELinux support --with-selinux enable SELinux support
--with-apparmor enable AppArmor support
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
both] both]
--with-aix-soname=aix|svr4|both --with-aix-soname=aix|svr4|both
@@ -3570,6 +3573,7 @@ ac_config_headers="$ac_config_headers config.h pathnames.h"
# #
@@ -3643,6 +3647,7 @@ BAMAN=0
LCMAN=0 LCMAN=0
PSMAN=0 PSMAN=0
SEMAN=0 SEMAN=0
AAMAN=0
LIBINTL= LIBINTL=
LIBCRYPTO= LIBCRYPTO=
LIBMD= LIBMD=
@@ -6854,6 +6859,26 @@ else $as_nop
fi fi
# Check whether --with-apparmor was given.
if test ${with_apparmor+y}
then :
withval=$with_apparmor; case $with_apparmor in
yes) printf "%s\n" "#define HAVE_APPARMOR 1" >>confdefs.h
AAMAN=1
SUDO_LIBS="${SUDO_LIBS} -lapparmor"
SUDO_OBJS="${SUDO_OBJS} apparmor.o"
;;
no) ;;
*) as_fn_error $? "--with-apparmor does not take an argument." "$LINENO" 5
esac
else $as_nop
with_apparmor=no
fi
# Check whether --enable-sasl was given. # Check whether --enable-sasl was given.
if test ${enable_sasl+y} if test ${enable_sasl+y}
then : then :
@@ -34984,5 +35009,6 @@ fi

View File

@@ -1489,9 +1489,8 @@ AC_ARG_WITH(apparmor, [AS_HELP_STRING([--with-apparmor], [enable AppArmor suppor
[case $with_apparmor in [case $with_apparmor in
yes) AC_DEFINE(HAVE_APPARMOR) yes) AC_DEFINE(HAVE_APPARMOR)
AAMAN=1 AAMAN=1
SUDO_LIBS="${SUDO_LIBS} -lapparmor"
SUDO_OBJS="${SUDO_OBJS} apparmor.o" SUDO_OBJS="${SUDO_OBJS} apparmor.o"
AC_CHECK_LIB(apparmor, aa_change_profile,
[SUDO_LIBS="${SUDO_LIBS} -lapparmor"])
;; ;;
no) ;; no) ;;
*) AC_MSG_ERROR([--with-apparmor does not take an argument.]) *) AC_MSG_ERROR([--with-apparmor does not take an argument.])

View File

@@ -306,9 +306,9 @@
#define def_log_passwords (sudo_defs_table[I_LOG_PASSWORDS].sd_un.flag) #define def_log_passwords (sudo_defs_table[I_LOG_PASSWORDS].sd_un.flag)
#define I_PASSPROMPT_REGEX 152 #define I_PASSPROMPT_REGEX 152
#define def_passprompt_regex (sudo_defs_table[I_PASSPROMPT_REGEX].sd_un.list) #define def_passprompt_regex (sudo_defs_table[I_PASSPROMPT_REGEX].sd_un.list)
#define I_INTERCEPT_TYPE 154 #define I_INTERCEPT_TYPE 153
#define def_intercept_type (sudo_defs_table[I_INTERCEPT_TYPE].sd_un.tuple) #define def_intercept_type (sudo_defs_table[I_INTERCEPT_TYPE].sd_un.tuple)
#define I_APPARMOR_PROFILE 153 #define I_APPARMOR_PROFILE 154
#define def_apparmor_profile (sudo_defs_table[I_APPARMOR_PROFILE].sd_un.str) #define def_apparmor_profile (sudo_defs_table[I_APPARMOR_PROFILE].sd_un.str)
enum def_tuple { enum def_tuple {

File diff suppressed because it is too large Load Diff

View File

@@ -96,16 +96,17 @@ extern int sudoersdebug;
CWD = 297, /* CWD */ CWD = 297, /* CWD */
TYPE = 298, /* TYPE */ TYPE = 298, /* TYPE */
ROLE = 299, /* ROLE */ ROLE = 299, /* ROLE */
PRIVS = 300, /* PRIVS */ APPARMOR_PROFILE = 300, /* APPARMOR_PROFILE */
LIMITPRIVS = 301, /* LIMITPRIVS */ PRIVS = 301, /* PRIVS */
CMND_TIMEOUT = 302, /* CMND_TIMEOUT */ LIMITPRIVS = 302, /* LIMITPRIVS */
NOTBEFORE = 303, /* NOTBEFORE */ CMND_TIMEOUT = 303, /* CMND_TIMEOUT */
NOTAFTER = 304, /* NOTAFTER */ NOTBEFORE = 304, /* NOTBEFORE */
MYSELF = 305, /* MYSELF */ NOTAFTER = 305, /* NOTAFTER */
SHA224_TOK = 306, /* SHA224_TOK */ MYSELF = 306, /* MYSELF */
SHA256_TOK = 307, /* SHA256_TOK */ SHA224_TOK = 307, /* SHA224_TOK */
SHA384_TOK = 308, /* SHA384_TOK */ SHA256_TOK = 308, /* SHA256_TOK */
SHA512_TOK = 309 /* SHA512_TOK */ SHA384_TOK = 309, /* SHA384_TOK */
SHA512_TOK = 310 /* SHA512_TOK */
}; };
typedef enum yytokentype yytoken_kind_t; typedef enum yytokentype yytoken_kind_t;
#endif #endif
@@ -156,16 +157,17 @@ extern int sudoersdebug;
#define CWD 297 #define CWD 297
#define TYPE 298 #define TYPE 298
#define ROLE 299 #define ROLE 299
#define PRIVS 300 #define APPARMOR_PROFILE 300
#define LIMITPRIVS 301 #define PRIVS 301
#define CMND_TIMEOUT 302 #define LIMITPRIVS 302
#define NOTBEFORE 303 #define CMND_TIMEOUT 303
#define NOTAFTER 304 #define NOTBEFORE 304
#define MYSELF 305 #define NOTAFTER 305
#define SHA224_TOK 306 #define MYSELF 306
#define SHA256_TOK 307 #define SHA224_TOK 307
#define SHA384_TOK 308 #define SHA256_TOK 308
#define SHA512_TOK 309 #define SHA384_TOK 309
#define SHA512_TOK 310
/* Value type. */ /* Value type. */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
@@ -185,7 +187,7 @@ union YYSTYPE
char *string; char *string;
int tok; int tok;
#line 189 "y.tab.h" #line 191 "y.tab.h"
}; };
typedef union YYSTYPE YYSTYPE; typedef union YYSTYPE YYSTYPE;

File diff suppressed because it is too large Load Diff

View File

@@ -385,7 +385,7 @@ apparmor.o: $(srcdir)/apparmor.c $(incdir)/compat/stdbool.h \
$(incdir)/sudo_plugin.h $(incdir)/sudo_queue.h \ $(incdir)/sudo_plugin.h $(incdir)/sudo_queue.h \
$(incdir)/sudo_util.h $(srcdir)/sudo.h $(top_builddir)/config.h \ $(incdir)/sudo_util.h $(srcdir)/sudo.h $(top_builddir)/config.h \
$(top_builddir)/pathnames.h $(top_builddir)/pathnames.h
$(CC) -c $(CPPFLAGS) $(CFLAGS) $(ASAN_CFLAGS) $(PIE_CFLAGS) $(SSP_CFLAGS) $(srcdir)/apparmor.c $(CC) -c $(CPPFLAGS) $(CFLAGS) $(ASAN_CFLAGS) $(PIE_CFLAGS) $(HARDENING_CFLAGS) $(srcdir)/apparmor.c
apparmor.i: $(srcdir)/apparmor.c $(incdir)/compat/stdbool.h \ apparmor.i: $(srcdir)/apparmor.c $(incdir)/compat/stdbool.h \
$(incdir)/sudo_compat.h $(incdir)/sudo_conf.h \ $(incdir)/sudo_compat.h $(incdir)/sudo_conf.h \
$(incdir)/sudo_debug.h $(incdir)/sudo_event.h \ $(incdir)/sudo_debug.h $(incdir)/sudo_event.h \