summaryrefslogtreecommitdiff
path: root/src/Makefile.am
AgeCommit message (Collapse)Author
2007-03-29* src/runcon.c: New program.Jim Meyering
* src/Makefile.am (bin_PROGRAMS): Add runcon. (runcon_LDADD): Define. * README: Add runcon to the list of programs. * AUTHORS: Add this: runcon: Russell Coker * tests/help-version: Add runcon as an exception. * man/Makefile.am (dist_man_MANS): Add runcon.1. (runcon.1): New dependency. * po/POTFILES.in: Add src/runcon.c.
2007-03-29mkfifo, mknod: Accept new "-Z, --context=C" option.Jim Meyering
* src/mkfifo.c, src/mknod.c: Include <selinux/selinux.h>. (main): Honor it. * src/Makefile.am (mkfifo_LDADD, mknod_LDADD): Use $(LIB_SELINUX).
2007-03-29mkdir: Accept new "-Z, --context=C" option.Jim Meyering
* src/mkdir.c: Include <selinux/selinux.h>. (main): Honor it. * src/Makefile.am (mkdir_LDADD): Use $(LIB_SELINUX).
2007-03-29cp, mv, install: add SELinux support, but unlike with the Red HatJim Meyering
patch, mv and cp do not provide the "-Z context" option. * src/copy.c: Include <selinux/selinux.h>. (restore_default_fscreatecon): New function. (copy_reg): Make cp --preserve=context work for existing destination. (copy_internal): Likewise for new destinations. * src/copy.h (cp_options) [preserve_security_context]: New member. * src/cp.c: Include <selinux/selinux.h>. (selinux_enabled): New global. (usage): Mention new --preserve=context option. (PRESERVE_CONTEXT): Define/use. (decode_preserve_arg): Handle PRESERVE_CONTEXT. (main): Remove an obsolete comment. If --preserve=context is specified on a system without SELinux enabled, give a diagnostic and fail. * src/mv.c: Include <selinux/selinux.h>. Set x->preserve_security_context if SELinux is enabled. * src/install.c: Accept new "-Z, --context=C" option. Accept --preserve-context option (but not -P option). Accept alternate spelling: --preserve_context, for now. Include <selinux/selinux.h> and "quotearg.h". (selinux_enabled, use_default_selinux_context): New globals. (PRESERVE_CONTEXT_OPTION): Define. (cp_option_init): Default: do not preserve security context. (setdefaultfilecon): New function. (main): Honor new options. * src/Makefile.am (mv_LDADD, cp_LDADD, ginstall_LDADD): Add $(LIB_SELINUX).
2007-03-29id: Add SELinux support: -Z option.Jim Meyering
* src/id.c (main): Apply patches from Fedora, with these changes: Remove #ifdef WITH_SELINUX. Use error (EXIT_FAILURE, not fprintf+exit(1). * src/Makefile.am (id_LDADD): Define, so as to add $(LIB_SELINUX).
2007-03-29stat: Add support for SELinux in the form of a %C format directive.Jim Meyering
* src/stat.c (follow_links): Make this variable file-global. (out_file_context): New function. (print_statfs): Honor %C. (print_stat): Honor %C. (do_stat): Remove follow_links parameter. (usage): Document the two %C directives. (main): Accept -Z (though it's a no-op). * src/Makefile.am (stat_LDADD): Define.
2007-03-29ls: Add support for SELinux and a slightly modified -Z option.Jim Meyering
I started with the patches from Red Hat. The entries below tell how the code evolved. * src/ls.c (print_long_format, print_file_name_and_frills): When there is no security context (due to getfilecon/lgetfilecon failing with e.g. ENOTSUP), print it as "?", not "". * src/ls.c (print_file_name_and_frills): Make -Z work without -l. (length_of_file_name_and_frills): Likewise. * src/ls.c: Remove the --lcontext and --scontext options. Change the way -Z, --context work so that it no longer implies -l. Thus, -Z -l will work like -lcontext and -Z without -l will work like --scontext. Adjust tests to reflect new 'ls -l' syntax -- affects only systems with SELinux when operating on a file with no ACL. These tests assumed that everything before the first space on each line is the 10-byte mode string. But there may also be a "+" in the 11th column, just before the space. However, note that this is not new. The same thing would have happened even without the change below, when listing a file with an ACL. * tests/chmod/equals, tests/cp/cp-parents, tests/cp/fail-perm: * tests/cp/link-preserve, tests/install/basic-1, tests/misc/mknod: * tests/mkdir/parents, tests/mkdir/special-1, tests/mv/partition-perm: Don't make compilation depend on USE_ACL. An SELinux security context counts as an "alternate access control method", so ls must output a "+" for each file with a security context. * src/ls.c [struct fileinfo] (have_acl): Declare unconditionally. (FILE_HAS_ACL): Remove macro definition. Use f->have_acl directly. (gobble_file): Record whether a file has a security context, and update the condition used to determine whether to print the "+". (gobble_file): Call getfilecon/lgetfilecon also when format == long_format, so that we get the "+". * src/ls.c (gobble_file): Add a comment explaining why (with a security context option) ls doesn't exit nonzero due to e.g., getfilecon failing with errno == ENOTSUP. * src/ls.c (gobble_file): Ignore failure of getfilecon if it's due to ENOTSUP. * src/ls.c (gobble_file): Factor out three small blocks using getfilecon and lgetfilecon. Don't ignore return value from getfilecon and lgetfilecon. * src/ls.c (print_long_format): Don't use ?: (empty 2nd arg with C ternary operator). (print_scontext_format): Likewise. (print_scontext): Declare to be "bool", not int. Adjust uses. * src/Makefile.am (dir_LDADD, ls_LDADD, vdir_LDADD): Add $(LIB_SELINUX). * tests/misc/chcon: New file. * tests/misc/chcon-fail: New file. * tests/Makefile.am (check-root): Run new, root-only misc/chcon test. * tests/misc/Makefile.am (TESTS): Add chcon and chcon-fail. * tests/misc/Makefile.am (TESTS): Add selinux. * tests/misc/selinux: New file. * tests/help-version: Skip chcon.
2007-03-29New program: chconJim Meyering
* gl/modules/selinux-at: New module. Check for libselinux and set LIB_SELINUX here, unconditionally, rather than depending on the configure-time --enable-selinux option. * gl/modules/selinux-h: New module. * bootstrap.conf (gnulib_modules): Add selinux-at. * gl/lib/selinux-at.c, gl/lib/selinux-at.h: New files. * gl/lib/se-selinux_.h: New file. * gl/lib/se-context_.h: New file. * gl/m4/selinux-selinux-h.m4: New file. * gl/m4/selinux-context-h.m4: New file. * src/Makefile.am (bin_PROGRAMS): Add chcon. (chcon_LDADD): Define. * README: Add chcon to the list of programs. * src/chcon.c: Rewrite the original (Red Hat) chcon to use fts.
2007-03-27* README: Use "install", not "ginstall" in the list of program names.Jim Meyering
* src/Makefile.am (check-README): Substitute s/ginstall/install/.
2007-03-20* src/Makefile.am (dir_LDADD, ls_LDADD, vdir_LDADD):Paul Eggert
Add $(LIB_ACL_TRIVIAL).
2007-01-04Use the release year, not the current year.Jim Meyering
* src/groups.sh (version): Use a better name: @RELEASE_YEAR@. * src/Makefile.am (RELEASE_YEAR): Define it. (.sh): Use it. Thanks to a prod from Eric Blake.
2007-01-04Ensure that "group --version" always prints the current year.Jim Meyering
* src/groups.sh (version): Use @CURRENT_YEAR@, rather than 2006. * src/Makefile.am (.sh): Also substitute for @CURRENT_YEAR@. Suggestion from Eric Blake.
2006-08-27(AM_CPPFLAGS): Remove -I$(srcdir) and -I../lib,Paul Eggert
since Automake supplies them for us. It always did -I$(srcdir), and with the recent change to AC_CONFIG_HEADERS in configure.ac it is now also doing -I../lib.
2006-08-25* .cvsignore: Remove stamp-h1. Add coreutils-*, to ignorePaul Eggert
tarballs. * bootstrap.conf: Add configmake, verify. * lib/.cvsignore: Add configmake.h, stamp-h1. * src/.cvsignore: Remove localedir.h. * src/Makefile.am (localedir, DISTCLEANFILES, localedir.h): Remove; subsumed by configmake. * src/system.h: Include configmake.h rather than localedir.h (LOCALEDIR): New macro.
2006-08-23* .cvsignore: Remove config.h, config.hin, as they are nowPaul Eggert
in lib. * configure.ac (AC_CONFIG_HEADERS): Move config.h and config.hin to lib. * lib/.cvsignore: Add config.h, config.hin. * lib/Makefile.am (AM_CPPFLAGS): Remove; we no longer need '-I..'. * src/Makefile.am (AM_CPPFLAGS): Remove '-I..'; no longer needed.
2006-08-22Move the check-AUTHORS rule to be run as part of "make distcheck",Jim Meyering
rather than "make check". * src/Makefile.am (check): Don't depend on check-AUTHORS; it would cause "make check" to fail on systems unable to build all binaries. * Makefile.maint (check-AUTHORS): New rule. (local-checks-available): Add it here. Reported by Bruno Haible. Needed for BeOS.
2006-08-08(bin_PROGRAMS): Add shuf.Paul Eggert
(EXTRA_DIST): Remove rand-isaac.c. (shuf_LDADD): New macro.
2006-07-01(seq_LDADD): Remove $(SEQ_LIBM); add $(POW_LIB).Paul Eggert
2006-06-27.PHONY: sc_tight_scopeJim Meyering
2006-03-27(uptime_LDADD): Add $(POW_LIB), for uptime's use of strtod.Jim Meyering
Tiny patch from Nickolai Zeldovich.
2006-02-27(bin_PROGRAMS): Add base64.Jim Meyering
2006-02-11*** empty log message ***Jim Meyering
2006-02-11(EXTRA_DIST): Add c99-to-c98.diff.Jim Meyering
2005-12-17(dir_LDADD, ls_LDADD, vdir_LDADD, cp_LDADD, mv_LDADD, ginstall_LDADD):Jim Meyering
On systems with an ACL library, arrange to link with it via $(LIB_ACL), for the utilities that need it.
2005-12-12(EXTRA_DIST): Add rand-isaac.c.Paul Eggert
2005-12-12(noinst_HEADERS): Remove rand-isaac.h.Paul Eggert
2005-12-10(noinst_HEADERS): Add rand-isaac.h.Jim Meyering
2005-12-10(sort_LDADD): Add $(LIB_GETHRXTIME).Paul Eggert
(shred_SOURCES, sort_SOURCES): New macros, so we compile rand-isaac.c.
2005-10-23(sha224sum, sha256sum, sha384sum, sha512sum): Rules for compiling sha-2 ↵Jim Meyering
utilities (noinst_HEADERS): Remove checksum.h.
2005-07-18(BUILT_SOURCES): Remove false.c.Paul Eggert
(false.c): Remove; it's now a source file.
2005-07-14Remove FESETROUND_LIBM; no longer needed.Paul Eggert
2005-05-18Add copyright notice.Paul Eggert
(factor_LDADD): Remove, as factor no longer needs sqrt.
2005-04-18(LDADD, $(PROGRAMS)): fetish -> coreutils.Paul Eggert
2005-03-28(sc_tight_scope): Adjust to catch anyJim Meyering
new declarations like that of stty.c's `speeds'.
2005-03-19(pr_LDADD): Now that pr uses gettime, addJim Meyering
$(LIB_CLOCK_GETTIME) to get the required -lrt on newer Linux systems.
2005-03-01(nanosec_libs): Remove $(LIB_XANOSLEEP); no longer needed.Paul Eggert
2005-02-22(dd_LDADD, shred_LDADD): Add $(LIB_GETHRXTIME).Paul Eggert
(nanosec_libs): Add $(LIB_XNANOSLEEP). Needed for newer GNU/Linux hosts with clock_gettime.
2005-02-21(dd_LDADD, shred_LDADD, nanosec_libs):Paul Eggert
Remove $(LIB_CLOCK_GETTIME). These functions now use gethrxtime instead.
2005-01-24(all_programs.list): Strip $(EXEEXT) and remove duplicates.Jim Meyering
2005-01-11(check-README, check-AUTHORS): Account for $(EXEEXT).Jim Meyering
2004-12-14(__LDADD): Define, so that building `[' onJim Meyering
Solaris still uses the -lgen library that it requires in order to get a definition of eaccess.
2004-11-15(dd_LDADD): Add $(LIB_CLOCK_GETTIME).Paul Eggert
2004-11-03(check-AUTHORS): Don't assume \? works in a sedPaul Eggert
expression; it's not portable. Problem reported by Albert Chin. Don't invoke a program more than once.
2004-09-22(check-AUTHORS): New rule.Jim Meyering
(check): Depend on it.
2004-09-13(localedir.h): Don't redirect directly to target.Paul Eggert
2004-08-01(localedir.h): Make it readonly; thisPaul Eggert
undoes part of the 2004-07-27 patch.
2004-07-28this causes Solaris 8 'make' to refuse to build "groups".Paul Eggert
(localedir.h): Don't depend on Makefile: this causes Solaris 8 'make' to build localedir.h unnecessarily. The dependence on Makefile is ineffective anyway, since $(localedir) might change even if Makefile hasn't.
2004-07-28(cp_LDADD, ginstall_LDADD, mv_LDADD,Paul Eggert
pathchk_LDADD, rm_LDADD, test_LDADD): New vars, for eaccess.
2004-05-13Don't assume that "make -C" works; Solaris "make" doesn't have -C.Jim Meyering
(all_programs.list): New rule, copied from man/Makefile.am and tests/Makefile.am, except that we use the system tr rather than ./tr and we don't use tr -s.
2004-04-27(sc_tight_scope): Also check for global variables, (BSS section).Jim Meyering