Commit Graph

230647 Commits

Author SHA1 Message Date
snj 8310cc2562 Pull up following revision(s) (requested by manu in ticket #827):
sbin/raidctl/raidctl.c: revision 1.58
Better sanity check numbers given to raidctl(8)
Replace atoi(3) by strtol(3), and check that numbers are valid,
positive, and in int32_t range. The previous lack of check could
silently lead to the same serial being set to all RAID volumes
for instance because given numbers were bigger than INT_MAX. The
consequence is in an awful mess when RAIDframe would mix volumes...
2015-06-08 20:48:01 +00:00
snj 4bae267d60 Pull up following revision(s) (requested by mlelstv in ticket #832):
sys/arch/amiga/amiga/autoconf.c: revision 1.117
use RAW_PART to trigger read of disklabel, other units might by busy due
to discovered wedges.
2015-06-08 20:46:29 +00:00
snj 88ef20ba4b Pull up following revision(s) (requested by christos in ticket #826):
external/bsd/openpam/dist/CREDITS: up to 1.1.1.4
	external/bsd/openpam/dist/HISTORY: up to 1.1.1.4
	external/bsd/openpam/dist/INSTALL: up to 1.1.1.4
	external/bsd/openpam/dist/LICENSE: up to 1.1.1.4
	external/bsd/openpam/dist/Makefile.am: up to 1.1.1.4
	external/bsd/openpam/dist/Makefile.in: up to 1.1.1.4
	external/bsd/openpam/dist/README: up to 1.1.1.4
	external/bsd/openpam/dist/RELNOTES: up to 1.1.1.4
	external/bsd/openpam/dist/TODO: up to 1.1.1.3
	external/bsd/openpam/dist/aclocal.m4: up to 1.1.1.4
	external/bsd/openpam/dist/autogen.sh: up to 1.1.1.4
	external/bsd/openpam/dist/bin/Makefile.in: up to 1.1.1.4
	external/bsd/openpam/dist/bin/openpam_dump_policy/Makefile.in: up to 1.1.1.3
	external/bsd/openpam/dist/bin/openpam_dump_policy/openpam_dump_policy.c: up to 1.1.1.3
	external/bsd/openpam/dist/bin/pamtest/Makefile.in: up to 1.1.1.4
	external/bsd/openpam/dist/bin/pamtest/pamtest.1: up to 1.7
	external/bsd/openpam/dist/bin/su/Makefile.in: up to 1.1.1.4
	external/bsd/openpam/dist/bin/su/su.1: up to 1.7
	external/bsd/openpam/dist/config.h.in: up to 1.1.1.4
	external/bsd/openpam/dist/configure: up to 1.1.1.4
	external/bsd/openpam/dist/configure.ac: up to 1.1.1.4
	external/bsd/openpam/dist/doc/Makefile.in: up to 1.1.1.4
	external/bsd/openpam/dist/doc/man/Makefile.in: up to 1.1.1.5
	external/bsd/openpam/dist/doc/man/openpam.3: up to 1.9
	external/bsd/openpam/dist/doc/man/openpam_borrow_cred.3: up to 1.6
	external/bsd/openpam/dist/doc/man/openpam_free_data.3: up to 1.6
	external/bsd/openpam/dist/doc/man/openpam_free_envlist.3: up to 1.7
	external/bsd/openpam/dist/doc/man/openpam_get_feature.3: up to 1.5
	external/bsd/openpam/dist/doc/man/openpam_get_option.3: up to 1.6
	external/bsd/openpam/dist/doc/man/openpam_log.3: up to 1.6
	external/bsd/openpam/dist/doc/man/openpam_nullconv.3: up to 1.6
	external/bsd/openpam/dist/doc/man/openpam_readline.3: up to 1.6
	external/bsd/openpam/dist/doc/man/openpam_readlinev.3: up to 1.5
	external/bsd/openpam/dist/doc/man/openpam_readword.3: up to 1.5
	external/bsd/openpam/dist/doc/man/openpam_restore_cred.3: up to 1.6
	external/bsd/openpam/dist/doc/man/openpam_set_feature.3: up to 1.5
	external/bsd/openpam/dist/doc/man/openpam_set_option.3: up to 1.6
	external/bsd/openpam/dist/doc/man/openpam_straddch.3: up to 1.5
	external/bsd/openpam/dist/doc/man/openpam_subst.3: up to 1.7
	external/bsd/openpam/dist/doc/man/openpam_ttyconv.3: up to 1.6
	external/bsd/openpam/dist/doc/man/pam.3: up to 1.9
	external/bsd/openpam/dist/doc/man/pam.conf.5: up to 1.8
	external/bsd/openpam/dist/doc/man/pam_acct_mgmt.3: up to 1.6
	external/bsd/openpam/dist/doc/man/pam_authenticate.3: up to 1.6
	external/bsd/openpam/dist/doc/man/pam_chauthtok.3: up to 1.6
	external/bsd/openpam/dist/doc/man/pam_close_session.3: up to 1.6
	external/bsd/openpam/dist/doc/man/pam_conv.3: up to 1.7
	external/bsd/openpam/dist/doc/man/pam_end.3: up to 1.6
	external/bsd/openpam/dist/doc/man/pam_error.3: up to 1.6
	external/bsd/openpam/dist/doc/man/pam_get_authtok.3: up to 1.7
	external/bsd/openpam/dist/doc/man/pam_get_data.3: up to 1.6
	external/bsd/openpam/dist/doc/man/pam_get_item.3: up to 1.6
	external/bsd/openpam/dist/doc/man/pam_get_user.3: up to 1.7
	external/bsd/openpam/dist/doc/man/pam_getenv.3: up to 1.6
	external/bsd/openpam/dist/doc/man/pam_getenvlist.3: up to 1.6
	external/bsd/openpam/dist/doc/man/pam_info.3: up to 1.6
	external/bsd/openpam/dist/doc/man/pam_open_session.3: up to 1.6
	external/bsd/openpam/dist/doc/man/pam_prompt.3: up to 1.6
	external/bsd/openpam/dist/doc/man/pam_putenv.3: up to 1.6
	external/bsd/openpam/dist/doc/man/pam_set_data.3: up to 1.6
	external/bsd/openpam/dist/doc/man/pam_set_item.3: up to 1.6
	external/bsd/openpam/dist/doc/man/pam_setcred.3: up to 1.6
	external/bsd/openpam/dist/doc/man/pam_setenv.3: up to 1.6
	external/bsd/openpam/dist/doc/man/pam_sm_acct_mgmt.3: up to 1.6
	external/bsd/openpam/dist/doc/man/pam_sm_authenticate.3: up to 1.6
	external/bsd/openpam/dist/doc/man/pam_sm_chauthtok.3: up to 1.6
	external/bsd/openpam/dist/doc/man/pam_sm_close_session.3: up to 1.6
	external/bsd/openpam/dist/doc/man/pam_sm_open_session.3: up to 1.6
	external/bsd/openpam/dist/doc/man/pam_sm_setcred.3: up to 1.6
	external/bsd/openpam/dist/doc/man/pam_start.3: up to 1.6
	external/bsd/openpam/dist/doc/man/pam_strerror.3: up to 1.7
	external/bsd/openpam/dist/doc/man/pam_verror.3: up to 1.6
	external/bsd/openpam/dist/doc/man/pam_vinfo.3: up to 1.6
	external/bsd/openpam/dist/doc/man/pam_vprompt.3: up to 1.6
	external/bsd/openpam/dist/include/Makefile.in: up to 1.1.1.4
	external/bsd/openpam/dist/include/security/Makefile.in: up to 1.1.1.4
	external/bsd/openpam/dist/include/security/openpam_version.h: up to 1.5
	external/bsd/openpam/dist/lib/Makefile.am: up to 1.1.1.5
	external/bsd/openpam/dist/lib/Makefile.in: up to 1.1.1.5
	external/bsd/openpam/dist/lib/libpam/Makefile.am: up to 1.1.1.1
	external/bsd/openpam/dist/lib/libpam/Makefile.in: up to 1.1.1.1
	external/bsd/openpam/dist/lib/libpam/openpam_asprintf.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_asprintf.h: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_borrow_cred.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_check_owner_perms.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_configure.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_constants.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_constants.h: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_cred.h: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_ctype.h: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_debug.h: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_dispatch.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_dlfunc.h: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_dynamic.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_features.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_features.h: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_findenv.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_free_data.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_free_envlist.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_get_feature.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_get_option.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_impl.h: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_load.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_log.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_nullconv.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_readline.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_readlinev.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_readword.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_restore_cred.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_set_feature.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_set_option.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_static.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_straddch.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_strlcat.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_strlcat.h: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_strlcmp.h: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_strlcpy.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_strlcpy.h: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_strlset.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_strlset.h: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_subst.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_ttyconv.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_vasprintf.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/openpam_vasprintf.h: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_acct_mgmt.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_authenticate.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_authenticate_secondary.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_chauthtok.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_close_session.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_end.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_error.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_get_authtok.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_get_data.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_get_item.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_get_mapped_authtok.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_get_mapped_username.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_get_user.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_getenv.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_getenvlist.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_info.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_open_session.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_prompt.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_putenv.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_set_data.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_set_item.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_set_mapped_authtok.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_set_mapped_username.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_setcred.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_setenv.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_sm_acct_mgmt.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_sm_authenticate.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_sm_authenticate_secondary.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_sm_chauthtok.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_sm_close_session.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_sm_get_mapped_authtok.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_sm_get_mapped_username.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_sm_open_session.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_sm_set_mapped_authtok.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_sm_set_mapped_username.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_sm_setcred.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_start.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_strerror.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_verror.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_vinfo.c: up to 1.2
	external/bsd/openpam/dist/lib/libpam/pam_vprompt.c: up to 1.2
	external/bsd/openpam/dist/lib/openpam_asprintf.c delete
	external/bsd/openpam/dist/lib/openpam_asprintf.h delete
	external/bsd/openpam/dist/lib/openpam_borrow_cred.c delete
	external/bsd/openpam/dist/lib/openpam_check_owner_perms.c delete
	external/bsd/openpam/dist/lib/openpam_configure.c delete
	external/bsd/openpam/dist/lib/openpam_constants.c delete
	external/bsd/openpam/dist/lib/openpam_constants.h delete
	external/bsd/openpam/dist/lib/openpam_cred.h delete
	external/bsd/openpam/dist/lib/openpam_ctype.h delete
	external/bsd/openpam/dist/lib/openpam_debug.h delete
	external/bsd/openpam/dist/lib/openpam_dispatch.c delete
	external/bsd/openpam/dist/lib/openpam_dlfunc.h delete
	external/bsd/openpam/dist/lib/openpam_dynamic.c delete
	external/bsd/openpam/dist/lib/openpam_features.c delete
	external/bsd/openpam/dist/lib/openpam_features.h delete
	external/bsd/openpam/dist/lib/openpam_findenv.c delete
	external/bsd/openpam/dist/lib/openpam_free_data.c delete
	external/bsd/openpam/dist/lib/openpam_free_envlist.c delete
	external/bsd/openpam/dist/lib/openpam_get_feature.c delete
	external/bsd/openpam/dist/lib/openpam_get_option.c delete
	external/bsd/openpam/dist/lib/openpam_impl.h delete
	external/bsd/openpam/dist/lib/openpam_load.c delete
	external/bsd/openpam/dist/lib/openpam_log.c delete
	external/bsd/openpam/dist/lib/openpam_nullconv.c delete
	external/bsd/openpam/dist/lib/openpam_readline.c delete
	external/bsd/openpam/dist/lib/openpam_readlinev.c delete
	external/bsd/openpam/dist/lib/openpam_readword.c delete
	external/bsd/openpam/dist/lib/openpam_restore_cred.c delete
	external/bsd/openpam/dist/lib/openpam_set_feature.c delete
	external/bsd/openpam/dist/lib/openpam_set_option.c delete
	external/bsd/openpam/dist/lib/openpam_static.c delete
	external/bsd/openpam/dist/lib/openpam_straddch.c delete
	external/bsd/openpam/dist/lib/openpam_strlcat.c delete
	external/bsd/openpam/dist/lib/openpam_strlcat.h delete
	external/bsd/openpam/dist/lib/openpam_strlcmp.h delete
	external/bsd/openpam/dist/lib/openpam_strlcpy.c delete
	external/bsd/openpam/dist/lib/openpam_strlcpy.h delete
	external/bsd/openpam/dist/lib/openpam_subst.c delete
	external/bsd/openpam/dist/lib/openpam_ttyconv.c delete
	external/bsd/openpam/dist/lib/openpam_vasprintf.c delete
	external/bsd/openpam/dist/lib/openpam_vasprintf.h delete
	external/bsd/openpam/dist/lib/pam_acct_mgmt.c delete
	external/bsd/openpam/dist/lib/pam_authenticate.c delete
	external/bsd/openpam/dist/lib/pam_authenticate_secondary.c delete
	external/bsd/openpam/dist/lib/pam_chauthtok.c delete
	external/bsd/openpam/dist/lib/pam_close_session.c delete
	external/bsd/openpam/dist/lib/pam_end.c delete
	external/bsd/openpam/dist/lib/pam_error.c delete
	external/bsd/openpam/dist/lib/pam_get_authtok.c delete
	external/bsd/openpam/dist/lib/pam_get_data.c delete
	external/bsd/openpam/dist/lib/pam_get_item.c delete
	external/bsd/openpam/dist/lib/pam_get_mapped_authtok.c delete
	external/bsd/openpam/dist/lib/pam_get_mapped_username.c delete
	external/bsd/openpam/dist/lib/pam_get_user.c delete
	external/bsd/openpam/dist/lib/pam_getenv.c delete
	external/bsd/openpam/dist/lib/pam_getenvlist.c delete
	external/bsd/openpam/dist/lib/pam_info.c delete
	external/bsd/openpam/dist/lib/pam_open_session.c delete
	external/bsd/openpam/dist/lib/pam_prompt.c delete
	external/bsd/openpam/dist/lib/pam_putenv.c delete
	external/bsd/openpam/dist/lib/pam_set_data.c delete
	external/bsd/openpam/dist/lib/pam_set_item.c delete
	external/bsd/openpam/dist/lib/pam_set_mapped_authtok.c delete
	external/bsd/openpam/dist/lib/pam_set_mapped_username.c delete
	external/bsd/openpam/dist/lib/pam_setcred.c delete
	external/bsd/openpam/dist/lib/pam_setenv.c delete
	external/bsd/openpam/dist/lib/pam_sm_acct_mgmt.c delete
	external/bsd/openpam/dist/lib/pam_sm_authenticate.c delete
	external/bsd/openpam/dist/lib/pam_sm_authenticate_secondary.c delete
	external/bsd/openpam/dist/lib/pam_sm_chauthtok.c delete
	external/bsd/openpam/dist/lib/pam_sm_close_session.c delete
	external/bsd/openpam/dist/lib/pam_sm_get_mapped_authtok.c delete
	external/bsd/openpam/dist/lib/pam_sm_get_mapped_username.c delete
	external/bsd/openpam/dist/lib/pam_sm_open_session.c delete
	external/bsd/openpam/dist/lib/pam_sm_set_mapped_authtok.c delete
	external/bsd/openpam/dist/lib/pam_sm_set_mapped_username.c delete
	external/bsd/openpam/dist/lib/pam_sm_setcred.c delete
	external/bsd/openpam/dist/lib/pam_start.c delete
	external/bsd/openpam/dist/lib/pam_strerror.c delete
	external/bsd/openpam/dist/lib/pam_verror.c delete
	external/bsd/openpam/dist/lib/pam_vinfo.c delete
	external/bsd/openpam/dist/lib/pam_vprompt.c delete
	external/bsd/openpam/dist/ltmain.sh: up to 1.1.1.3
	external/bsd/openpam/dist/m4/libtool.m4 delete
	external/bsd/openpam/dist/m4/ltoptions.m4 delete
	external/bsd/openpam/dist/m4/ltsugar.m4 delete
	external/bsd/openpam/dist/m4/ltversion.m4 delete
	external/bsd/openpam/dist/m4/lt~obsolete.m4 delete
	external/bsd/openpam/dist/mkpkgng.in: up to 1.1.1.2
	external/bsd/openpam/dist/modules/Makefile.in: up to 1.1.1.4
	external/bsd/openpam/dist/modules/pam_deny/Makefile.in: up to 1.1.1.4
	external/bsd/openpam/dist/modules/pam_permit/Makefile.in: up to 1.1.1.4
	external/bsd/openpam/dist/modules/pam_unix/Makefile.in: up to 1.1.1.4
	external/bsd/openpam/dist/pamgdb.in: up to 1.1.1.3
	external/bsd/openpam/dist/t/Makefile.am: up to 1.1.1.3
	external/bsd/openpam/dist/t/Makefile.in: up to 1.1.1.3
	external/bsd/openpam/dist/t/t.h: up to 1.1.1.3
	external/bsd/openpam/dist/t/t_file.c: up to 1.1.1.2
	external/bsd/openpam/dist/t/t_main.c: up to 1.1.1.3
	external/bsd/openpam/dist/t/t_openpam_ctype.c: up to 1.1.1.1
	external/bsd/openpam/dist/t/t_openpam_readlinev.c: up to 1.2
	external/bsd/openpam/dist/t/t_openpam_readword.c: up to 1.2
	external/bsd/openpam/openpam2netbsd: up to 1.3
	lib/libpam/libpam/Makefile: revision 1.17
OpenPAM Ourouparia                                              2014-09-12

 - ENHANCE: When executing a chain, require at least one service
   function to succeed.  This mitigates fail-open scenarios caused by
   misconfigurations or missing modules.

 - ENHANCE: Make sure to overwrite buffers which may have contained an
   authentication token when they're no longer needed.

 - BUGFIX: Under certain circumstances, specifying a non-existent
   module (or misspelling the name of a module) in a policy could
   result in a fail-open scenario.  (CVE-2014-3879)

 - FEATURE: Add a search path for modules.  This was implemented in
   Nummularia but inadvertently left out of the release notes.

 - BUGFIX: The is_upper() predicate only accepted the letter A as an
   upper-case character instead of the entire A-Z range.  As a result,
   service and module names containing upper-case letters other than A
   would be rejected.
--
pam library has moved and new files
2015-06-08 20:33:19 +00:00
snj 93efaafbb6 814 & 825 2015-06-05 17:05:12 +00:00
snj 165256017b Pull up following revision(s) (requested by riz in ticket #825):
share/mk/bsd.lib.mk: revision 1.358 via patch
fix MKDEBUG vs parallel builds.  split the creation of the final
.so file from the main link of it, and use the main file as the
input for both the .so output and the .so.debug file.  for MKDEBUG
builds we now:
	(a) create the (new) .so.full file
	(d) create the .so.debug file
	(c) create the (installable) .so file
for other builds, we simply use the same rule for (a) to create (c).
this stops the .so.debug rule from modifying the .so rule's target
and leading to mayhem.
see this thread for more details:
    http://mail-index.netbsd.org/tech-toolchain/2015/06/03/msg002616.html
2015-06-05 17:03:43 +00:00
snj 58c80fdde8 Pull up following revision(s) (requested by maxv in ticket #814):
sys/arch/i386/conf/GENERIC: revision 1.1125
	sys/arch/i386/conf/XEN3_DOM0: revision 1.95
	sys/arch/i386/conf/XEN3_DOMU: revision 1.67
Disable COMPAT_FREEBSD. The implementation is poor, not well tested and
almost irrelevant. People who need it (for tw_cli for example) can still
recompile their kernels with this option.
Discussed on tech-kern@
2015-06-05 16:52:39 +00:00
snj d74aca5884 amend 824 2015-06-05 16:46:05 +00:00
snj 4fe19cbc37 Pull up following revision(s) (requested by joerg in ticket #824):
external/bsd/llvm/dist/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp: revision 1.1.1.3
	external/bsd/llvm/dist/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h: revision 1.1.1.3
Update LLVM to 3.6.1.
2015-06-05 16:45:19 +00:00
snj e139e40923 824 2015-06-04 20:41:19 +00:00
snj 1e6021115a Pull up following revision(s) (requested by joerg in ticket #824):
distrib/sets/lists/comp/ad.arm: revision 1.65
	distrib/sets/lists/comp/md.amd64: revisions 1.228, 1.230
	distrib/sets/lists/comp/md.i386: revision 1.151, 1.152
	distrib/sets/lists/comp/mi: revision 1.1963
	tools/llvm/Makefile: revisions 1.19, 1.20
	tools/llvm-lib/liblldConfig/Makefile: revision 1.1
	tools/llvm-lib/liblldReaderWriterELFAArch64/Makefile: revision 1.1
Install cpuid.h on X86 and arm_neon.h on ARM.
--
Update set lists for LLVM 3.6RC1.
--
Until we have a solution for stdatomic.h for GCC 4.8, install Clang's
version under /usr/include/clang-3.6 to match the C11 default.
--
Update build system glue for LLVM 3.6RC1. Notable changes:
- Old JIT is removed.
- Improvements to debug information handling.
- ARM: check for deprecated instructions and warn in the integrated
  assembler
- PPC: VSX support, va_arg support for struct/union types, -fPIC vs
  -fpic supported, faster atomics
- x86: improved vectorizer
--
cleandir-llvm should not exist in the filesystem
--
misc/48722: Use explicit HOST_SH in case the user insists on removing
permissions from the filesystem.
2015-06-04 20:29:49 +00:00
snj 374d71a036 Update LLVM to 3.6.1, requested by joerg in ticket 824. 2015-06-04 20:19:12 +00:00
snj 6db9fc979c Update LLVM to 3.6.1, requested by joerg in ticket 824. 2015-06-04 20:04:21 +00:00
snj cab1eff265 823 2015-06-04 16:35:14 +00:00
snj 0bd6742e19 Pull up following revision(s) (requested by martin in ticket #823):
share/mk/bsd.own.mk: revisions 1.852, 1.853 via patch
	distrib/sets/lists/base/ad.arm: revision 1.75 via patch
	distrib/sets/lists/debug/ad.arm: revisions 1.64, 1.65 via patch
Fix setlists and enable MKCOMPAT for OABI on earm platforms.
2015-06-04 16:33:03 +00:00
msaitoh fd2ad8d86e Ticket 822. 2015-06-04 09:45:43 +00:00
msaitoh 80cdeb3500 Pull up following revision(s) (requested by hsuenaga in ticket #822):
sys/net/if_gif.c: revision 1.85
	sys/net/if_gif.c: revision 1.86
Obtain softnet_lock before entering IP networking stack from gif software
interrupt.
Include <sys/socketvar.h> for softnet_lock.
2015-06-04 09:44:57 +00:00
msaitoh 51bbaa2ebf Ticket 820 and 821. 2015-06-04 07:36:25 +00:00
msaitoh 6c5e0568e7 Pull up following revision(s) (requested by martin in ticket #821):
bin/sh/builtins.def: revision 1.23
	bin/sh/Makefile: revision 1.101
Include printf by default even for SMALL builds. It is used e.g. by
dhcpcd and as such required by most ramdisk images. Allow turning it off
again by TINYPROG.
2015-06-04 07:35:25 +00:00
msaitoh b1703d08ca Pull up following revision(s) (requested by rmind in ticket #820):
usr.sbin/npf/npfctl/npf_show.c: revision 1.19
npfctl: fix the from/to port mess up when showing the rules.
2015-06-04 07:34:26 +00:00
martin 884e5602b4 Ticket #819 2015-06-04 05:42:38 +00:00
martin 488054ce1f Apply patch, requested by mrg in #819:
lib/libstdc++-v3/arch/earm/c++config.h		(patch)
	lib/libstdc++-v3/arch/earmeb/c++config.h	(patch)
	lib/libstdc++-v3/arch/earmhf/c++config.h	(patch)
	lib/libstdc++-v3/arch/earmhfeb/c++config.h	(patch)
	lib/libstdc++-v3/arch/earmv4/c++config.h	(patch)
	lib/libstdc++-v3/arch/earmv4eb/c++config.h	(patch)
	lib/libstdc++-v3/arch/earmv6/c++config.h	(patch)
	lib/libstdc++-v3/arch/earmv6eb/c++config.h	(patch)
	lib/libstdc++-v3/arch/earmv6hf/c++config.h	(patch)
	lib/libstdc++-v3/arch/earmv6hfeb/c++config.h	(patch)
	lib/libstdc++-v3/arch/earmv7/c++config.h	(patch)
	lib/libstdc++-v3/arch/earmv7eb/c++config.h	(patch)
	lib/libstdc++-v3/arch/earmv7hf/c++config.h	(patch)
	lib/libstdc++-v3/arch/earmv7hfeb/c++config.h	(patch)
	usr.bin/gcc/arch/earm/multilib.h		(patch)
	usr.bin/gcc/arch/earmeb/multilib.h		(patch)
	usr.bin/gcc/arch/earmhf/multilib.h		(patch)
	usr.bin/gcc/arch/earmhfeb/multilib.h		(patch)
	usr.bin/gcc/arch/earmv4/multilib.h		(patch)
	usr.bin/gcc/arch/earmv4eb/multilib.h		(patch)
	usr.bin/gcc/arch/earmv6/multilib.h		(patch)
	usr.bin/gcc/arch/earmv6eb/multilib.h		(patch)
	usr.bin/gcc/arch/earmv6hf/multilib.h		(patch)
	usr.bin/gcc/arch/earmv6hfeb/multilib.h		(patch)
	usr.bin/gcc/arch/earmv7/multilib.h		(patch)
	usr.bin/gcc/arch/earmv7eb/multilib.h		(patch)
	usr.bin/gcc/arch/earmv7hf/multilib.h		(patch)
	usr.bin/gcc/arch/earmv7hfeb/multilib.h		(patch)

Regen for arm OABI compat changes.
2015-06-04 05:40:46 +00:00
snj 63862b5ca9 ticket 752 2015-06-03 06:53:37 +00:00
snj a1c48ada05 Pull up following revision(s) (requested by pgoyette in ticket #752):
sys/modules/example/Makefile: file removal
	sys/modules/example/example.c: file removal
	sys/modules/examples/Makefile: revision 1.1
	sys/modules/examples/Makefile.inc: revision 1.1
	sys/modules/examples/README: revisions 1.1-1.3
	sys/modules/examples/hello/Makefile: revision 1.1
	sys/modules/examples/hello/hello.c: revision 1.1
	sys/modules/examples/luahello/luahello.lua: revisions 1.1, 1.2
	sys/modules/examples/ping/Makefile: revision 1.1
	sys/modules/examples/ping/cmd_ping.c: revisions 1.1, 1.2
	sys/modules/examples/ping/ping.c: revision 1.1
	sys/modules/examples/ping/ping.h: revision 1.1
	sys/modules/examples/properties/Makefile: revision 1.1
	sys/modules/examples/properties/properties.c: revision 1.1
	sys/modules/examples/readhappy/Makefile: revision 1.1
	sys/modules/examples/readhappy/readhappy.c: revision 1.1
Soon to be replaced with a more comprehensive set of examples.
--
A set of more comprehensive example kernel modules to replace our
previous single example.
These examples were provided by Kamil Rytarowski.
XXX These modules are built as part of a system build, but they
XXX are NOT installed in $DESTDIR.
--
Fix instructions to match reality.  (I renamed the example from the
original submitter, but didn't catch all internal references.)
--
Fix up another internal reference to renamed module, and adjust some
English grammar.
--
Even though this isn't a man page, it looks like one.  So sort the
SEE ALSO section accordingly.
--
Fix RCS ID.
2015-06-03 06:51:39 +00:00
snj ea33b5c499 774, 813, 815 2015-06-02 20:43:40 +00:00
snj 894c2008d0 Pull up following revision(s) (requested by christos in ticket #815):
external/bsd/blacklist/bin/conf.c: revision 1.19, 1.20
	external/bsd/blacklist/etc/blacklistd.conf: revision 1.4
	external/bsd/blacklist/lib/bl.c: revisions 1.25, 1.26
	external/bsd/blacklist/test/Makefile: revision 1.3
	external/bsd/blacklist/test/srvtest.c: revision 1.10
Centralize and fix =/* parsing, now =/24 works again.
XXX: pullup-7
--
fix example.
--
Add ability to test using a local socket.
--
put back setting uid and gid to -1 if they are not available.
--
Merge the uid data too, so that we don't end up with multiple entries
when we don't care about the uid in the config file. In this case sshd
returns either uid=root|sshd depending on how we failed, so we used to
get two entries.
--
Make sure that we get the socket messages we expect, otherwise return NULL.
2015-06-02 20:32:44 +00:00
snj 2ece38c5be Pull up following revision(s) (requested by joerg in ticket #813):
sys/arch/arm/include/profile.h: revision 1.17 via patch
ARM has deprecated using both PC and LR in the register list of pop with
ARMv6T2, so split the instructions up.
2015-06-02 20:03:37 +00:00
snj b8a7f8b471 Pull up following revision(s) (requested by jnemeth in ticket #774):
sbin/gpt/Makefile: revisions 1.9-1.13
	sbin/gpt/add.c: revisions 1.25-1.27
	sbin/gpt/backup.c: revisions 1.2-1.8
	sbin/gpt/biosboot.c: revisions 1.8-1.14
	sbin/gpt/create.c: revisions 1.8-1.12
	sbin/gpt/destroy.c: revisions 1.5-1.6
	sbin/gpt/drvctl.c: revision 1.1
	sbin/gpt/gpt.8: revisions 1.29-1.36
	sbin/gpt/gpt.c: revisions 1.29-1.40
	sbin/gpt/gpt.h: revisions 1.12-1.18
	sbin/gpt/gpt_uuid.c: revisions 1.1-1.10
	sbin/gpt/gpt_uuid.h: revisions 1.1-1.3
	sbin/gpt/label.c: revisions 1.15-1.18
	sbin/gpt/map.c: revision 1.7
	sbin/gpt/migrate.c: revisions 1.15-1.21
	sbin/gpt/recover.c: revision 1.5
	sbin/gpt/remove.c: revisions 1.13-1.16
	sbin/gpt/resize.c: revisions 1.9-1.11
	sbin/gpt/resizedisk.c: revisions 1.1-1.6
	sbin/gpt/restore.c: revisions 1.2-1.7
	sbin/gpt/set.c: revisions 1.3-1.5
	sbin/gpt/show.c: revision 1.16-1.21
	sbin/gpt/type.c: revisions 1.1-1.6
	sbin/gpt/unset.c: revisions 1.3-1.5
- record the sector size of the disk
- correct confusion with end_cylinder and end_sector in MBRs
--
- dump all partitions, not just ones that are in use
- while here, squash a memory leak
     It shouldn't be necessary to backup unused partitions, however
the partition GUID is created at the time the GPT is created and
is never changed.  It shouldn't matter if the GUID of an unused
partition changes, but there may be some special case where it
does.  Since it isn't a big deal to record the unused partitions,
might as well do it.
--
Initial cut of gpt restore.  This functions correctly in testing,
but isn't all that pretty.  It has minimal error testing and may
leak memory.  It also only works with empty disks.  If passed "-F"
flag, it will blank the disk for you.
--
document the new restore subcommand
--
- make gpt_gpt() available for use directly by subcommands
- create new resizedisk disk subcommand for relocating backup GPT
--
Fix compile error observed on i386. Use PRIu64.
--
no C99isms in tool code
--
- handle a GPT that isn't an exact multiple of a sector
- adjust PMBR size, in case new disk is a different size
- don't leak as much memory
- clean up error handling somewhat
--
PR/44218 - David Young -- add "type" subcommand to change a partition type
--
PR/47990 - Dr. Wolfgang Stukenbrock -- add "-L <label>" as selector option
--
minor toolification: need libprop...
--
more toolification
--
more toolification changes
--
remove compat defines.
--
Add internal uuid support, since the linux+macos versions of the library
are different than than *bsd ones, and others might not have it at all.
--
Check size of correct buffer.  Note, just being pedantic as the buffer
being checked is the same size as the one that should have been checked.
--
correctly show partition type in the new world order
--
actually return the uuid when parsing one that is in numeric format
--
using random values for hdr->hdr_guid does not work very well
--
oops, forgot to update end of data area
--
It's HAVE_NBTOOL_CONFIG_H, not HAVE_NBTOOLS_CONFIG_H
--
Fix tools build on !NetBSD.
--
include <sys/endian.h> for both the non-tools build,
and the tools build on a host where the file exists.
Fixes a build problem on FreeBSD, reported by Herbert J. Skuhra, where
tools/compat's configure detected that be32dec() and friends were
available in the host's <sys/endian.h>, so tools/compat did not provide
its own versions.
--
"0" is not guaranteed to be unique
--
provide a copy of the kernel uuid generator (with portable API calls) for
tools.
--
Allow specifying sector and media size on the command line.
--
Remove trailing whitespace.
--
Make gpt(8) generate v4 (random) uuids.
Don't needlessly leak your date/time and MAC address when you edit
the disk.
Read from /dev/urandom rather than calling arc4random or anything,
since this is a tool.  (Cygwin seems to have /dev/urandom, but yell
if this breaks the build on your exotic platform because it lacks
/dev/urandom.)
ok apb
--
Paranoia: choke noisily on EOF from /dev/urandom.
--
Report the argument instead of (null) when opendisk fails.
--
handle constness
--
handle constness better
--
Add some more common partition types.
--
Bump date for previous.
--
Fix handling of -t option for the type command.
Match any type, when no option is given, just like for the label command.
--
Factor out the getdisksize() drvctl method, and provide an alternative that
directly uses the disk ioctl's instead of relying on the drvctl device driver
which is currently not mandatory.
2015-06-02 19:49:38 +00:00
sborrill 667b53e347 Ticket #818 2015-06-02 14:51:11 +00:00
sborrill 33d8abb259 Pull up the following revisions(s) (requested by mrg in ticket #818):
sys/external/bsd/drm2/radeon/radeon_pci.c:	revision 1.10

Disable drmkms on R100 and most R200 cards. Works around PR#49744.
2015-06-02 14:50:50 +00:00
sborrill b08f3364d3 Ticket #817 2015-06-02 10:14:45 +00:00
sborrill f38e8ebb46 Pull up the following revisions(s) (requested by abs in ticket #817):
sys/arch/vax/vsa/vsbus.c:	revision 1.61

Fix VAX46 and VAX48 vsbus attach config. Addresses PR port-vax/49935.
2015-06-02 10:14:22 +00:00
snj 0cbde9ac2b 775, 810, 811, 816 2015-06-01 19:40:04 +00:00
snj 71d1fc5632 Pull up following revision(s) (requested by martin in ticket #816):
compat/archdirs.mk: revisions 1.7, 1.9, 1.10
	compat/arm/eabihf/bsd.eabihf.mk: revision 1.2
	external/gpl3/gcc/dist/gcc/config.gcc: revision 1.33
	external/gpl3/gcc/dist/gcc/config/arm/netbsd-eabi.h: revision 1.14
	external/gpl3/gcc/dist/gcc/config/arm/t-netbsdeabi: revision 1.1
Enable building eabihf compat libraries after fixing bsd.eabihf.mk to use
--
use the proper variant of arm*--netbsdelf-eabihf
--
Fix broken subdir selection after arm architecture explosion
--
Only support oabi for earm*
--
Make MULTILIBS work for oabi
2015-06-01 19:38:35 +00:00
snj 4d1158e6f4 Pull up following revision(s) (requested by wiz in ticket #811):
lib/libcurses/unctrl.h: revision 1.5
Fix quoting in macro.
Needed by dialog-1.2-20150513.
2015-06-01 19:26:26 +00:00
snj 3264ace34d Pull up following revision(s) (requested by manu in ticket #810):
usr.bin/make/targ.c: revision 1.60
Fix warning about uninitialized variable
This warning gets fatal when including make(1) as a crunchgen(1) binary.
2015-06-01 19:24:47 +00:00
snj 0c4cf5fe0b Pull up following revision(s) (requested by manu in ticket #809):
usr.bin/netstat/route.c: revision 1.84
Make sure netstat builds with -DSMALL
src/usr.bin/netstat relies on code from src/sbin/route. WHen building
with -DSMALL, some functions such as mpls_ntoa() or p_rtrmx() are not
built in src/sbin/route. We therefore have to make sure they are not
used in src/usr.bin/netstat.
2015-06-01 19:22:31 +00:00
snj 940cc8a6cc Pull up following revision(s) (requested by jnemeth in ticket #775):
share/man/man9/disk.9: revision 1.37
	sys/kern/subr_disk.c: revisions 1.104, 1.105
	sys/dev/dksubr.c: revision 1.56
	sys/sys/dkio.h: revision 1.21
Implement DIOCGMEDIASIZE and DIOCGSECTORSIZE from FreeBSD.
--
clear error for new ioctls.
2015-06-01 19:19:44 +00:00
martin 083ba074cc Ticket #812 2015-05-28 10:03:27 +00:00
martin 35ff382658 Pull up the following revision, requested by joerg in #812:
src/lib/libm/arch/m68k/s_copysign.S	1.10

Deal with the potential pressence of long double support.
2015-05-28 10:00:08 +00:00
msaitoh 8b9aa0e182 Ticket 808. 2015-05-27 10:00:24 +00:00
msaitoh 5c0fe6951e Pull up following revision(s) (requested by joerg in ticket #808):
lib/libm/arch/alpha/s_copysign.S: revision 1.6
	lib/libm/arch/alpha/s_copysign.S: revision 1.7
	lib/libm/arch/m68k/s_copysign.S: revision 1.8
	lib/libm/arch/m68k/s_copysign.S: revision 1.9
- Add copysignl aliases.
- It's copysign, not _copysign.
2015-05-27 09:22:56 +00:00
msaitoh e303ff3fe1 Ticket 805 and 807. 2015-05-27 05:37:13 +00:00
msaitoh 9d1a804f3c Pull up following revision(s) (requested by skrll in ticket #807):
external/gpl3/gcc/dist/gcc/config/arm/netbsd-elf.h: revision 1.8
Fix up TARGET_ENDIAN_DEFAULT for BE oabi
2015-05-27 05:36:34 +00:00
msaitoh 8894c0b7d0 Pull up following revision(s) (requested by skrll in ticket #805):
sys/arch/arm/include/arm32/pmap.h: revision 1.138
	sys/arch/arm/arm/cpufunc.c: revision 1.151
	sys/arch/arm/arm32/bus_dma.c: revision 1.90
	sys/arch/arm/broadcom/bcm53xx_pax.c: revision 1.14
	sys/arch/arm/arm32/bus_dma.c: revision 1.91
	sys/arch/arm/samsung/exynos_space.c: revision 1.2
	sys/arch/arm/arm32/db_machdep.c: revision 1.23
	sys/arch/arm/allwinner/awin_space.c: revision 1.4
	sys/arch/arm/include/rwlock.h: revision 1.9
	sys/arch/arm/amlogic/amlogic_space.c: revision 1.2
	sys/arch/arm/zynq/zynq_space.c: revision 1.2
	sys/arch/arm/broadcom/bcm2835_space.c: revision 1.7
	sys/arch/arm/arm32/pmap.c: revision 1.317
	sys/arch/arm/include/locore.h: revision 1.19
	sys/arch/arm/include/mutex.h: revision 1.20
	sys/arch/arm/include/lock.h: revision 1.31
	sys/arch/arm/include/lock.h: revision 1.32
	sys/arch/arm/broadcom/bcmgen_space.c: revision 1.5
- Kill redundant semicolons.
- Indentation.
- Improve inline asm around dsb/dmb/isb:
  - always use volatile and mark them as memory barrier
  - use the common version from locore.h in all places not included from
    userland
2015-05-27 05:33:29 +00:00
msaitoh fec438ff02 Ticket 804 and 806. 2015-05-26 02:29:44 +00:00
msaitoh defd132bdf Pull up following revision(s) (requested by mlelstv in ticket #806):
sys/arch/amiga/conf/files.amiga: revision 1.177
amidisplaycc requires vcons
2015-05-26 02:28:46 +00:00
msaitoh 8c2542fac5 Pull up following revision(s) (requested by mlelstv in ticket #804):
sys/arch/amiga/conf/Makefile.amiga: revision 1.108
Don't use conflicting parameters for compiler and assembler.
2015-05-26 02:22:00 +00:00
msaitoh ef506b7dae Ticket 794 and 800. 2015-05-26 01:37:06 +00:00
msaitoh da9ded43fb Pull up following revision(s) (requested by skrll in ticket #800):
sys/arch/arm/arm32/pmap.c: revision 1.320
	sys/arch/arm/arm32/pmap.c: revision 1.321
	sys/arch/arm/arm32/pmap.c: revision 1.322
	sys/arch/arm/arm32/pmap.c: revision 1.319
- include "opt_arm_debug.h" for VERBOSE_INIT_ARM
- Add pmap locking to pmap_kenter_pa/kremove
- Make sure nptes is a multiple of PAGE_SIZE / L2_S_SIZE.
- Use PDE_SYNC when syncing pdeps
2015-05-26 01:34:40 +00:00
msaitoh 302a800941 Pull up following revision(s) (requested by jmcneill in ticket #794):
sys/dev/sdmmc/sdmmc.c: revision 1.25
	sys/dev/sdmmc/sdmmc.c: revision 1.26
	sys/dev/sdmmc/ld_sdmmc.c: revision 1.13
	sys/dev/sdmmc/ld_sdmmc.c: revision 1.16
- Be a bit more verbose about errors, also pass through error code
  from lower layer like other drivers.
- need to call lddone with splbio and kernel lock held
- sdmmc_task_thread isn't MPSAFE so instead of just wrapping the callback
  in KERNEL_LOCK/KERNEL_UNLOCK_ONE, remove KTHREAD_MPSAFE. While here, use
  PRI_BIO instead of PRI_NONE for the task thread priority. Since this is
  how all transfers are queued, and we have a 1 second timeout on the task
  being picked up off the queue (!), better not to rely on a PRI_NONE thread.
2015-05-26 01:29:53 +00:00