svn commit: r350307 - in head: . lib/libcasper/libcasper lib/libcasper/services lib/libcasper/services/cap_random share/mk sys/sys targets/pseudo/userland/lib
Mark Johnston
markj at FreeBSD.org
Wed Jul 24 22:50:45 UTC 2019
Author: markj
Date: Wed Jul 24 22:50:43 2019
New Revision: 350307
URL: https://svnweb.freebsd.org/changeset/base/350307
Log:
Remove cap_random(3).
Now that we have a way to obtain entropy in capability mode
(getrandom(2)), libcap_random is obsolete. Remove it.
Bump __FreeBSD_version in case anything happens to use it, though I've
found no consumers.
Reviewed by: delphij, emaste, oshogbo
Relnotes: yes
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D21033
Deleted:
head/lib/libcasper/services/cap_random/
Modified:
head/ObsoleteFiles.inc
head/lib/libcasper/libcasper/libcasper.3
head/lib/libcasper/services/Makefile
head/share/mk/src.libnames.mk
head/sys/sys/param.h
head/targets/pseudo/userland/lib/Makefile.depend
Modified: head/ObsoleteFiles.inc
==============================================================================
--- head/ObsoleteFiles.inc Wed Jul 24 21:43:41 2019 (r350306)
+++ head/ObsoleteFiles.inc Wed Jul 24 22:50:43 2019 (r350307)
@@ -38,6 +38,11 @@
# xargs -n1 | sort | uniq -d;
# done
+# 20190722: cap_random(3) removed
+OLD_FILES+=lib/casper/libcap_random.so.1
+OLD_FILES+=usr/include/casper/cap_random.h
+OLD_FILES+=usr/share/man/man3/cap_random.3.gz
+OLD_FILES+=usr/share/man/man3/cap_random_buf.3.gz
# 20190708: vm_page_hold() and _unhold() removed
OLD_FILES+=usr/share/man/man9/vm_page_hold.9.gz
# 20190618: sys/capability.h removed (sys/capsicum.h is the one to use)
Modified: head/lib/libcasper/libcasper/libcasper.3
==============================================================================
--- head/lib/libcasper/libcasper/libcasper.3 Wed Jul 24 21:43:41 2019 (r350306)
+++ head/lib/libcasper/libcasper/libcasper.3 Wed Jul 24 22:50:43 2019 (r350307)
@@ -264,7 +264,6 @@ functions always succeed.
.Xr cap_dns 3 ,
.Xr cap_grp 3 ,
.Xr cap_pwd 3 ,
-.Xr cap_random 3 ,
.Xr cap_sysctl 3 ,
.Xr cap_syslog 3 ,
.Xr libcasper_service 3 ,
Modified: head/lib/libcasper/services/Makefile
==============================================================================
--- head/lib/libcasper/services/Makefile Wed Jul 24 21:43:41 2019 (r350306)
+++ head/lib/libcasper/services/Makefile Wed Jul 24 22:50:43 2019 (r350307)
@@ -6,7 +6,6 @@ SUBDIR= cap_dns
SUBDIR+= cap_fileargs
SUBDIR+= cap_grp
SUBDIR+= cap_pwd
-SUBDIR+= cap_random
SUBDIR+= cap_sysctl
SUBDIR+= cap_syslog
Modified: head/share/mk/src.libnames.mk
==============================================================================
--- head/share/mk/src.libnames.mk Wed Jul 24 21:43:41 2019 (r350306)
+++ head/share/mk/src.libnames.mk Wed Jul 24 22:50:43 2019 (r350307)
@@ -82,7 +82,6 @@ _LIBRARIES= \
cap_fileargs \
cap_grp \
cap_pwd \
- cap_random \
cap_sysctl \
cap_syslog \
com_err \
@@ -260,7 +259,6 @@ _DP_cap_dns= nv
_DP_cap_fileargs= nv
_DP_cap_grp= nv
_DP_cap_pwd= nv
-_DP_cap_random= nv
_DP_cap_sysctl= nv
_DP_cap_syslog= nv
.if ${MK_OFED} != "no"
@@ -599,7 +597,6 @@ LIBCASPERDIR= ${OBJTOP}/lib/libcasper/libcasper
LIBCAP_DNSDIR= ${OBJTOP}/lib/libcasper/services/cap_dns
LIBCAP_GRPDIR= ${OBJTOP}/lib/libcasper/services/cap_grp
LIBCAP_PWDDIR= ${OBJTOP}/lib/libcasper/services/cap_pwd
-LIBCAP_RANDOMDIR= ${OBJTOP}/lib/libcasper/services/cap_random
LIBCAP_SYSCTLDIR= ${OBJTOP}/lib/libcasper/services/cap_sysctl
LIBCAP_SYSLOGDIR= ${OBJTOP}/lib/libcasper/services/cap_syslog
LIBBSDXMLDIR= ${OBJTOP}/lib/libexpat
Modified: head/sys/sys/param.h
==============================================================================
--- head/sys/sys/param.h Wed Jul 24 21:43:41 2019 (r350306)
+++ head/sys/sys/param.h Wed Jul 24 22:50:43 2019 (r350307)
@@ -60,7 +60,7 @@
* in the range 5 to 9.
*/
#undef __FreeBSD_version
-#define __FreeBSD_version 1300036 /* Master, propagated to newvers */
+#define __FreeBSD_version 1300037 /* Master, propagated to newvers */
/*
* __FreeBSD_kernel__ indicates that this system uses the kernel of FreeBSD,
Modified: head/targets/pseudo/userland/lib/Makefile.depend
==============================================================================
--- head/targets/pseudo/userland/lib/Makefile.depend Wed Jul 24 21:43:41 2019 (r350306)
+++ head/targets/pseudo/userland/lib/Makefile.depend Wed Jul 24 22:50:43 2019 (r350307)
@@ -221,7 +221,6 @@ DIRDEPS+= \
lib/libcasper/services/cap_dns \
lib/libcasper/services/cap_grp \
lib/libcasper/services/cap_pwd \
- lib/libcasper/services/cap_random \
lib/libcasper/services/cap_sysctl \
.endif
More information about the svn-src-head
mailing list