Author: asomers
Date: Sun Apr 19 02:20:39 2020
New Revision: 360088
URL: https://svnweb.freebsd.org/changeset/base/360088

Log:
  libauditd: make it a PRIVATELIB
  
  According to the upstream man page (which we don't install), none of
  libauditd's symbols are intended to be public. Also, I can't find any
  evidence for a port that uses libauditd. Therefore, we should treat it like
  other such libraries and use PRIVATELIB.
  
  Reported by:  phk
  Reviewed by:  cem, emaste
  MFC after:    2 weeks

Modified:
  head/ObsoleteFiles.inc
  head/contrib/openbsm/bin/auditd/auditd.8
  head/lib/libauditd/Makefile
  head/share/mk/src.libnames.mk

Modified: head/ObsoleteFiles.inc
==============================================================================
--- head/ObsoleteFiles.inc      Sun Apr 19 02:18:40 2020        (r360087)
+++ head/ObsoleteFiles.inc      Sun Apr 19 02:20:39 2020        (r360088)
@@ -36,6 +36,12 @@
 #   xargs -n1 | sort | uniq -d;
 # done
 
+# 20200418: Make libauditd private
+OLD_FILES+=usr/lib/libauditd.a
+OLD_FILES+=usr/lib/libauditd.so
+OLD_LIBS+=usr/lib/libauditd.so.5
+OLD_FILES+=usr/lib/libauditd_p.a
+
 # 20200418: Remove bogus man links
 OLD_FILES+=usr/share/man/man3/getauusernam_R.3.gz
 OLD_FILES+=usr/share/man/man3/getauclassnam_3.3.gz

Modified: head/contrib/openbsm/bin/auditd/auditd.8
==============================================================================
--- head/contrib/openbsm/bin/auditd/auditd.8    Sun Apr 19 02:18:40 2020        
(r360087)
+++ head/contrib/openbsm/bin/auditd/auditd.8    Sun Apr 19 02:20:39 2020        
(r360088)
@@ -25,7 +25,7 @@
 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd July 25, 2015
+.Dd April 18, 2020
 .Dt AUDITD 8
 .Os
 .Sh NAME
@@ -113,7 +113,6 @@ and are no longer available as arguments to
 .Nm .
 .Sh SEE ALSO
 .Xr asl 3 ,
-.Xr libauditd 3 ,
 .Xr audit 4 ,
 .Xr audit_class 5 ,
 .Xr audit_control 5 ,

Modified: head/lib/libauditd/Makefile
==============================================================================
--- head/lib/libauditd/Makefile Sun Apr 19 02:18:40 2020        (r360087)
+++ head/lib/libauditd/Makefile Sun Apr 19 02:20:39 2020        (r360088)
@@ -18,6 +18,7 @@ SRCS= auditd_lib.c
 CFLAGS+=       -I${OPENBSMDIR} -I${_LIBBSMDIR}
 
 WARNS?=                3
+PRIVATELIB=    true
 
 MAN=
 

Modified: head/share/mk/src.libnames.mk
==============================================================================
--- head/share/mk/src.libnames.mk       Sun Apr 19 02:18:40 2020        
(r360087)
+++ head/share/mk/src.libnames.mk       Sun Apr 19 02:20:39 2020        
(r360088)
@@ -15,6 +15,7 @@ __<src.libnames.mk>__:
 _PRIVATELIBS=  \
                atf_c \
                atf_cxx \
+               auditd \
                bsdstat \
                devdctl \
                event \
@@ -72,7 +73,6 @@ _LIBRARIES=   \
                alias \
                archive \
                asn1 \
-               auditd \
                avl \
                be \
                begemot \
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to