Chris PeBenito 5a3b36
1.27.10 2005-10-17
Chris PeBenito 5a3b36
	* Changed getseuserbyname to ignore empty lines and to handle
Chris PeBenito 5a3b36
	no matching entry in the same manner as no seusers file.
Chris PeBenito 5a3b36
Chris PeBenito f9d771
1.27.9 2005-10-13
Chris PeBenito f9d771
	* Changed selinux_mkload_policy to try downgrading the
Chris PeBenito f9d771
	latest policy version available to the kernel-supported version.
Chris PeBenito f9d771
Chris PeBenito f9d771
1.27.8 2005-10-11
Chris PeBenito f9d771
	* Changed selinux_mkload_policy to fall back to the maximum
Chris PeBenito f9d771
	policy version supported by libsepol if the kernel policy version
Chris PeBenito f9d771
	falls outside of the supported range.
Chris PeBenito f9d771
Chris PeBenito 473ea7
1.27.7 2005-10-06
Chris PeBenito 473ea7
	* Changed getseuserbyname to fall back to the Linux username and
Chris PeBenito 473ea7
	NULL level if seusers config file doesn't exist unless 
Chris PeBenito 473ea7
	REQUIRESEUSERS=1 is set in /etc/selinux/config.
Chris PeBenito 473ea7
	* Moved seusers.conf under $SELINUXTYPE and renamed to seusers.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.27.6 2005-10-06
Chris PeBenito 473ea7
	* Added selinux_init_load_policy() function as an even higher level
Chris PeBenito 473ea7
	interface for the initial policy load by /sbin/init.  This obsoletes
Chris PeBenito 473ea7
	the load_policy() function in the sysvinit-selinux.patch. 
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.27.5 2005-10-06
Chris PeBenito 473ea7
	* Added selinux_mkload_policy() function as a higher level interface
Chris PeBenito 473ea7
	for loading policy than the security_load_policy() interface.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.27.4 2005-10-05
Chris PeBenito 473ea7
	* Merged fix for matchpathcon (regcomp error checking) from Johan
Chris PeBenito 473ea7
	Fischer.  Also added use of regerror to obtain the error string
Chris PeBenito 473ea7
	for inclusion in the error message.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.27.3 2005-10-03
Chris PeBenito 473ea7
	* Changed getseuserbyname to not require (and ignore if present)
Chris PeBenito 473ea7
	the MLS level in seusers.conf if MLS is disabled, setting *level
Chris PeBenito 473ea7
	to NULL in this case.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.27.2 2005-09-30
Chris PeBenito 473ea7
	* Merged getseuserbyname patch from Dan Walsh.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.27.1 2005-09-19
Chris PeBenito 473ea7
	* Merged STRIP_LEVEL patch for matchpathcon from Dan Walsh.  
Chris PeBenito 473ea7
	  This allows file_contexts with MLS fields to be processed on 
Chris PeBenito 473ea7
	  non-MLS-enabled systems with policies that are otherwise 
Chris PeBenito 473ea7
	  identical (e.g. same type definitions).
Chris PeBenito 473ea7
	* Merged get_ordered_context_list_with_level() function from
Chris PeBenito 473ea7
	  Dan Walsh, and added get_default_context_with_level().
Chris PeBenito 473ea7
	  This allows MLS level selection for users other than the
Chris PeBenito 473ea7
	  default level.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.26 2005-09-06
Chris PeBenito 473ea7
	* Updated version for release.
Chris PeBenito 473ea7
	
Chris PeBenito 473ea7
1.25.7 2005-09-01
Chris PeBenito 473ea7
	* Merged modified form of patch to avoid dlopen/dlclose by
Chris PeBenito 473ea7
	the static libselinux from Dan Walsh.  Users of the static libselinux
Chris PeBenito 473ea7
	will not have any context translation by default.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.25.6 2005-08-31
Chris PeBenito 473ea7
	* Added public functions to export context translation to
Chris PeBenito 473ea7
	users of libselinux (selinux_trans_to_raw_context,
Chris PeBenito 473ea7
	selinux_raw_to_trans_context).
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.25.5 2005-08-26
Chris PeBenito 473ea7
	* Remove special definition for context_range_set; use
Chris PeBenito 473ea7
	common code.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.25.4 2005-08-25
Chris PeBenito 473ea7
	* Hid translation-related symbols entirely and ensured that 
Chris PeBenito 473ea7
	raw functions have hidden definitions for internal use.
Chris PeBenito 473ea7
	* Allowed setting NULL via context_set* functions.
Chris PeBenito 473ea7
	* Allowed whitespace in MLS component of context.
Chris PeBenito 473ea7
	* Changed rpm_execcon to use translated functions to workaround
Chris PeBenito 473ea7
	lack of MLS level on upgraded systems.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.25.3 2005-08-23
Chris PeBenito 473ea7
	* Merged context translation patch, originally by TCS,
Chris PeBenito 473ea7
	  with modifications by Dan Walsh (Red Hat).
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.25.2 2005-08-11
Chris PeBenito 473ea7
	* Merged several fixes for error handling paths in the
Chris PeBenito 473ea7
	  AVC sidtab, matchpathcon, booleans, context, and get_context_list
Chris PeBenito 473ea7
	  code from Serge Hallyn (IBM).   Bugs found by Coverity.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.25.1 2005-08-10
Chris PeBenito 473ea7
	* Removed setupns; migrated to pam.
Chris PeBenito 473ea7
	* Merged patches to rename checkPasswdAccess() from Joshua Brindle.
Chris PeBenito 473ea7
	  Original symbol is temporarily retained for compatibility until 
Chris PeBenito 473ea7
	  all callers are updated.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.24 2005-06-20
Chris PeBenito 473ea7
	* Updated version for release.
Chris PeBenito 473ea7
	
Chris PeBenito 473ea7
1.23.12 2005-06-13
Chris PeBenito 473ea7
	* Merged security_setupns() from Chad Sellers.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.23.11 2005-05-19
Chris PeBenito 473ea7
	* Merged avcstat and selinux man page from Dan Walsh.
Chris PeBenito 473ea7
	* Changed security_load_booleans to process booleans.local 
Chris PeBenito 473ea7
	  even if booleans file doesn't exist.
Chris PeBenito 473ea7
	
Chris PeBenito 473ea7
1.23.10 2005-04-29
Chris PeBenito 473ea7
	* Merged set_selinuxmnt patch from Bill Nottingham (Red Hat).
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.23.9 2005-04-26
Chris PeBenito 473ea7
	* Rewrote get_ordered_context_list and helpers, including
Chris PeBenito 473ea7
	  changing logic to allow variable MLS fields.
Chris PeBenito 473ea7
	
Chris PeBenito 473ea7
1.23.8 2005-04-25
Chris PeBenito 473ea7
	* Merged matchpathcon and man page patch from Dan Walsh.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.23.7 2005-04-12
Chris PeBenito 473ea7
	* Changed boolean functions to return -1 with errno ENOENT 
Chris PeBenito 473ea7
	  rather than assert on a NULL selinux_mnt (i.e. selinuxfs not
Chris PeBenito 473ea7
	  mounted).
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.23.6 2005-04-08
Chris PeBenito 473ea7
	* Fixed bug in matchpathcon_filespec_destroy.
Chris PeBenito 473ea7
	
Chris PeBenito 473ea7
1.23.5 2005-04-05
Chris PeBenito 473ea7
	* Fixed bug in rpm_execcon error handling path.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.23.4 2005-04-04
Chris PeBenito 473ea7
	* Merged fix for set_matchpathcon* functions from Andreas Steinmetz.
Chris PeBenito 473ea7
	* Merged fix for getconlist utility from Andreas Steinmetz.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.23.3 2005-03-29
Chris PeBenito 473ea7
	* Merged security_set_boolean_list patch from Dan Walsh.
Chris PeBenito 473ea7
	  This introduces booleans.local support for setsebool.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.23.2 2005-03-17
Chris PeBenito 473ea7
	* Merged destructors patch from Tomas Mraz.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.23.1 2005-03-16
Chris PeBenito 473ea7
	* Added set_matchpathcon_flags() function for setting flags
Chris PeBenito 473ea7
	  controlling operation of matchpathcon.  MATCHPATHCON_BASEONLY
Chris PeBenito 473ea7
	  means only process the base file_contexts file, not 
Chris PeBenito 473ea7
	  file_contexts.homedirs or file_contexts.local, and is for use by
Chris PeBenito 473ea7
	  setfiles -c.
Chris PeBenito 473ea7
	* Updated matchpathcon.3 man page.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.22 2005-03-09
Chris PeBenito 473ea7
	* Updated version for release.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.21.13 2005-03-08
Chris PeBenito 473ea7
	* Fixed bug in matchpathcon_filespec_add() - failure to clear fl_head.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.21.12 2005-03-01
Chris PeBenito 473ea7
	* Changed matchpathcon_common to ignore any non-format bits in the mode.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.21.11 2005-02-22
Chris PeBenito 473ea7
	* Merged several fixes from Ulrich Drepper.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.21.10 2005-02-17
Chris PeBenito 473ea7
	* Merged matchpathcon patch for file_contexts.homedir from Dan Walsh.
Chris PeBenito 473ea7
	* Added selinux_users_path() for path to directory containing
Chris PeBenito 473ea7
	  system.users and local.users.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.21.9 2005-02-09
Chris PeBenito 473ea7
	* Changed relabel Makefile target to use restorecon.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.21.8 2005-02-07
Chris PeBenito 473ea7
	* Regenerated av_permissions.h.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.21.7 2005-02-01
Chris PeBenito 473ea7
	* Modified avc_dump_av to explicitly check for any permissions that
Chris PeBenito 473ea7
	  cannot be mapped to string names and display them as a hex value.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.21.6 2005-01-31
Chris PeBenito 473ea7
	* Regenerated av_permissions.h.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.21.5 2005-01-28
Chris PeBenito 473ea7
	* Generalized matchpathcon internals, exported more interfaces,
Chris PeBenito 473ea7
	  and moved additional code from setfiles into libselinux so that
Chris PeBenito 473ea7
	  setfiles can directly use matchpathcon.
Chris PeBenito 473ea7
	
Chris PeBenito 473ea7
1.21.4 2005-01-27
Chris PeBenito 473ea7
	* Prevent overflow of spec array in matchpathcon.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.21.3 2005-01-26
Chris PeBenito 473ea7
	* Fixed several uses of internal functions to avoid relocations.
Chris PeBenito 473ea7
	* Changed rpm_execcon to check is_selinux_enabled() and fallback to
Chris PeBenito 473ea7
	  a regular execve if not enabled (or unable to determine due to a lack
Chris PeBenito 473ea7
	  of /proc, e.g. chroot'd environment).
Chris PeBenito 473ea7
	  
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.21.2 2005-01-24
Chris PeBenito 473ea7
	* Merged minor fix for avcstat from Dan Walsh.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.21.1 2005-01-19
Chris PeBenito 473ea7
	* Merged patch from Dan Walsh, including:
Chris PeBenito 473ea7
	     - new is_context_customizable function
Chris PeBenito 473ea7
	     - changed matchpathcon to also use file_contexts.local if present
Chris PeBenito 473ea7
	     - man page cleanups
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.20 2005-01-04
Chris PeBenito 473ea7
	* Changed matchpathcon to return -1 with errno ENOENT for 
Chris PeBenito 473ea7
	  <<none>> entries, and also for an empty file_contexts configuration.
Chris PeBenito 473ea7
	* Removed some trivial utils that were not useful or redundant.
Chris PeBenito 473ea7
	* Changed BINDIR default to /usr/sbin to match change in Fedora.
Chris PeBenito 473ea7
	* Added security_compute_member.
Chris PeBenito 473ea7
	* Added man page for setcon.
Chris PeBenito 473ea7
	* Merged more man pages from Dan Walsh.
Chris PeBenito 473ea7
	* Merged avcstat from James Morris.
Chris PeBenito 473ea7
	* Merged build fix for mips from Manoj Srivastava.
Chris PeBenito 473ea7
	* Merged C++ support from John Ramsdell of MITRE.
Chris PeBenito 473ea7
	* Merged setcon() function from Darrel Goeddel of TCS.
Chris PeBenito 473ea7
	* Merged setsebool/togglesebool enhancement from Steve Grubb.
Chris PeBenito 473ea7
	* Merged cleanup patches from Steve Grubb.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.18 2004-11-01
Chris PeBenito 473ea7
	* Merged cleanup patches from Steve Grubb.
Chris PeBenito 473ea7
	* Added rpm_execcon.
Chris PeBenito 473ea7
	* Merged setenforce and removable context patch from Dan Walsh.
Chris PeBenito 473ea7
	* Merged build fix for alpha from Ulrich Drepper.
Chris PeBenito 473ea7
	* Removed copyright/license from selinux_netlink.h - definitions only.
Chris PeBenito 473ea7
	* Merged matchmediacon from Dan Walsh.
Chris PeBenito 473ea7
	* Regenerated headers for new nscd permissions.
Chris PeBenito 473ea7
	* Added get_default_context_with_role.
Chris PeBenito 473ea7
	* Added set_matchpathcon_printf.	
Chris PeBenito 473ea7
	* Reworked av_inherit.h to allow easier re-use by kernel. 
Chris PeBenito 473ea7
	* Changed avc_has_perm_noaudit to not fail on netlink errors.
Chris PeBenito 473ea7
	* Changed avc netlink code to check pid based on patch by Steve Grubb.
Chris PeBenito 473ea7
	* Merged second optimization patch from Ulrich Drepper.
Chris PeBenito 473ea7
	* Changed matchpathcon to skip invalid file_contexts entries.
Chris PeBenito 473ea7
	* Made string tables private to libselinux.
Chris PeBenito 473ea7
	* Merged strcat->stpcpy patch from Ulrich Drepper.
Chris PeBenito 473ea7
	* Merged matchpathcon man page from Dan Walsh.
Chris PeBenito 473ea7
	* Merged patch to eliminate PLTs for local syms from Ulrich Drepper.
Chris PeBenito 473ea7
	* Autobind netlink socket.
Chris PeBenito 473ea7
	* Dropped compatibility code from security_compute_user.
Chris PeBenito 473ea7
	* Merged fix for context_range_set from Chad Hanson.
Chris PeBenito 473ea7
	* Merged allocation failure checking patch from Chad Hanson.
Chris PeBenito 473ea7
	* Merged avc netlink error message patch from Colin Walters.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.16 2004-08-19
Chris PeBenito 473ea7
	* Regenerated headers for nscd class.
Chris PeBenito 473ea7
	* Merged man pages from Dan Walsh.
Chris PeBenito 473ea7
	* Merged context_new bug fix for MLS ranges from Chad Hanson.
Chris PeBenito 473ea7
	* Merged toggle_bool from Chris PeBenito, renamed to togglesebool.
Chris PeBenito 473ea7
	* Renamed change_bool and show_bools to setsebool and getsebool.
Chris PeBenito 473ea7
	* Merged security_load_booleans() function from Dan Walsh.
Chris PeBenito 473ea7
	* Added selinux_booleans_path() function.
Chris PeBenito 473ea7
	* Changed avc_init function prototype to use const.
Chris PeBenito 473ea7
	* Regenerated headers for crontab permission.
Chris PeBenito 473ea7
	* Added checkAccess from Dan Walsh.
Chris PeBenito 473ea7
	* Merged getenforce patch from Dan Walsh.
Chris PeBenito 473ea7
	* Regenerated headers for dbus classes.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.14 2004-06-16
Chris PeBenito 473ea7
	* Regenerated headers for fine-grained netlink classes.
Chris PeBenito 473ea7
	* Merged selinux_config bug fix from Dan Walsh.
Chris PeBenito 473ea7
	* Added userspace AVC man pages.
Chris PeBenito 473ea7
	* Added man links for API calls to existing man pages documenting them.
Chris PeBenito 473ea7
	* Replaced $HOME/.default_contexts support with /etc/selinux/contexts/users/$USER support.
Chris PeBenito 473ea7
	* Merged patch to determine config file paths at runtime to support
Chris PeBenito 473ea7
	  reorganized layout.
Chris PeBenito 473ea7
	* Regenerated flask headers with stable ordering.
Chris PeBenito 473ea7
	* Merged patch for man pages from Russell Coker. 
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.12 2004-05-10
Chris PeBenito 473ea7
	* Updated flask files to include new SE-X security classes.
Chris PeBenito 473ea7
	* Added security_disable function for runtime disable of SELinux prior
Chris PeBenito 473ea7
	  to initial policy load (for /sbin/init).
Chris PeBenito 473ea7
	* Changed get_ordered_context_list to omit any reachable contexts
Chris PeBenito 473ea7
	  that are not explicitly listed in default_contexts, unless there
Chris PeBenito 473ea7
	  are no matches.
Chris PeBenito 473ea7
	* Merged man pages from Russell Coker and Dan Walsh.
Chris PeBenito 473ea7
	* Merged memory leak fixes from Dan Walsh.
Chris PeBenito 473ea7
	* Merged policyvers errno patch from Chris PeBenito.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.10 2004-04-05
Chris PeBenito 473ea7
	* Merged getenforce patch from Dan Walsh.
Chris PeBenito 473ea7
	* Fixed init_selinuxmnt to correctly handle use of "selinuxfs" as
Chris PeBenito 473ea7
	  the device specification, i.e. mount selinuxfs /selinux -t selinuxfs.
Chris PeBenito 473ea7
	  Based on a patch by Russell Coker.
Chris PeBenito 473ea7
	* Merged matchpathcon buffer size fix from Dan Walsh.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.8 2004-03-09
Chris PeBenito 473ea7
	* Merged is_selinux_mls_enabled() from Chad Hanson of TCS.
Chris PeBenito 473ea7
	* Added matchpathcon function.
Chris PeBenito 473ea7
	* Updated userspace AVC to handle netlink selinux notifications. 
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.6 2004-02-18
Chris PeBenito 473ea7
	* Merged conditional policy extensions from Tresys Technology.
Chris PeBenito 473ea7
	* Added userspace avc and SID table implementation.	
Chris PeBenito 473ea7
	* Fixed type on size in getpeercon per Thorsten Kukuk's advice.
Chris PeBenito 473ea7
	* Fixed use of getpwnam_r per Thorsten Kukuk's advice.
Chris PeBenito 473ea7
	* Changed to use getpwnam_r rather than getpwnam internally to 
Chris PeBenito 473ea7
	  avoid clobbering any existing pwd struct obtained by the caller.
Chris PeBenito 473ea7
	* Added getpeercon function to encapsulate getsockopt SO_PEERSEC
Chris PeBenito 473ea7
	  and handle allocation ala getfilecon.
Chris PeBenito 473ea7
	* Changed is_selinux_enabled to return -1 on errors.
Chris PeBenito 473ea7
	* Changed to discover selinuxfs mount point via /proc/mounts 
Chris PeBenito 473ea7
	  so that the mount point can be changed without rebuilding.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.4 2003-12-01
Chris PeBenito 473ea7
	* Merged another cleanup patch from Bastian Blank and Joerg Hoh.
Chris PeBenito 473ea7
	* Regenerate headers for new permissions. 
Chris PeBenito 473ea7
	* Merged static lib build patch from Bastian Blank and Joerg Hoh.
Chris PeBenito 473ea7
	* Export SELINUXMNT definition, add SELINUXPOLICY definition.
Chris PeBenito 473ea7
	* Add functions to provide access to enforce and policyvers.
Chris PeBenito 473ea7
	* Changed is_selinux_enabled to check /proc/filesystems for selinuxfs.
Chris PeBenito 473ea7
	* Fixed type for 'size' in *getfilecon. 
Chris PeBenito 473ea7
	* Dropped -lattr and changed #include's to <sys/xattr.h>
Chris PeBenito 473ea7
	* Merged patch to move shared library to /lib from Dan Walsh.
Chris PeBenito 473ea7
	* Changed get_ordered_context_list to support a failsafe context.
Chris PeBenito 473ea7
	* Added selinuxenabled utility.
Chris PeBenito 473ea7
	* Merged const patch from Thorsten Kukuk.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.2 2003-09-30
Chris PeBenito 473ea7
        * Change is_selinux_enabled to fail if policy isn't loaded.
Chris PeBenito 473ea7
	* Changed Makefiles to allow non-root rpm builds.
Chris PeBenito 473ea7
	* Added -lattr for libselinux.so to ensure proper binding.
Chris PeBenito 473ea7
Chris PeBenito 473ea7
1.1 2003-08-13
Chris PeBenito 473ea7
	* Ensure that context strings are padded with a null byte
Chris PeBenito 473ea7
	  in case the kernel didn't include one.
Chris PeBenito 473ea7
	* Regenerate headers, update helpers.c for code cleanup.
Chris PeBenito 473ea7
	* Pass soname flag to linker (Colin Walters).
Chris PeBenito 473ea7
	* Fixes for various items: add const as appropriate, handle missed OOM condition, clean up compile warnings (Colin Walters).
Chris PeBenito 473ea7
	  
Chris PeBenito 473ea7
1.0 2003-07-11
Chris PeBenito 473ea7
	* Initial public release.