/
snap
/
core18
/
2979
/
usr
/
sbin
/
/snap/core18/2979/usr/sbin
mkdir
upload
Name
Size
Mode
Actions
aa-remove-unknown
2923
0755
edit
dl
rm
aa-status
8610
0755
edit
dl
rm
add-shell
860
0755
edit
dl
rm
addgroup
37322
0755
edit
dl
rm
adduser
37322
0755
edit
dl
rm
apparmor_status
8610
0755
edit
dl
rm
arpd
55328
0755
edit
dl
rm
chgpasswd
59216
0755
edit
dl
rm
chmem
43088
0755
edit
dl
rm
chpasswd
55152
0755
edit
dl
rm
chroot
39096
0755
edit
dl
rm
cpgr
57304
0755
edit
dl
rm
cppw
57304
0755
edit
dl
rm
delgroup
16495
0755
edit
dl
rm
deluser
16495
0755
edit
dl
rm
e2freefrag
14408
0755
edit
dl
rm
e4crypt
22600
0755
edit
dl
rm
e4defrag
26616
0755
edit
dl
rm
faillock
14328
0755
edit
dl
rm
fdformat
30800
0755
edit
dl
rm
filefrag
14352
0755
edit
dl
rm
genl
59448
0755
edit
dl
rm
groupadd
63408
0755
edit
dl
rm
groupdel
72056
0755
edit
dl
rm
groupmems
59256
0755
edit
dl
rm
groupmod
69816
0755
edit
dl
rm
grpck
55096
0755
edit
dl
rm
grpconv
50872
0755
edit
dl
rm
grpunconv
50872
0755
edit
dl
rm
iconvconfig
30976
0755
edit
dl
rm
invoke-rc.d
16031
0755
edit
dl
rm
ip6tables-apply
7016
0755
edit
dl
rm
iptables-apply
7016
0755
edit
dl
rm
ldattach
30800
0755
edit
dl
rm
mklost+found
10232
0755
edit
dl
rm
netplan
798
0755
edit
dl
rm
newusers
84368
0755
edit
dl
rm
nfnl_osf
14328
0755
edit
dl
rm
nologin
6136
0755
edit
dl
rm
pam-auth-update
19850
0755
edit
dl
rm
pam_getenv
2890
0755
edit
dl
rm
pam_timestamp_check
10232
0755
edit
dl
rm
pwck
50992
0755
edit
dl
rm
pwconv
46800
0755
edit
dl
rm
pwunconv
46776
0755
edit
dl
rm
readprofile
18544
0755
edit
dl
rm
remove-shell
904
0755
edit
dl
rm
rfkill
47184
0755
edit
dl
rm
rmt
59792
0755
edit
dl
rm
rmt-tar
59792
0755
edit
dl
rm
rtcwake
43088
0755
edit
dl
rm
service
9262
0755
edit
dl
rm
sshd
790952
0755
edit
dl
rm
tarcat
936
0755
edit
dl
rm
tzconfig
106
0755
edit
dl
rm
update-ca-certificates
5394
0755
edit
dl
rm
update-mime
9053
0755
edit
dl
rm
update-passwd
31136
0755
edit
dl
rm
update-rc.d
16508
0755
edit
dl
rm
useradd
126240
0755
edit
dl
rm
userdel
84464
0755
edit
dl
rm
usermod
126016
0755
edit
dl
rm
vigr
61624
0755
edit
dl
rm
vipw
61624
0755
edit
dl
rm
visudo
213816
0755
edit
dl
rm
zic
55440
0755
edit
dl
rm
Edit:
/snap/core18/2979/usr/sbin/update-ca-certificates
(5394B)
#!/bin/sh -e # # update-ca-certificates # # Copyright (c) 2003 Fumitoshi UKAI <ukai@debian.or.jp> # Copyright (c) 2009 Philipp Kern <pkern@debian.org> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, # USA. # verbose=0 fresh=0 default=0 CERTSCONF=/etc/ca-certificates.conf CERTSDIR=/usr/share/ca-certificates LOCALCERTSDIR=/usr/local/share/ca-certificates CERTBUNDLE=ca-certificates.crt ETCCERTSDIR=/etc/ssl/certs HOOKSDIR=/etc/ca-certificates/update.d while [ $# -gt 0 ]; do case $1 in --verbose|-v) verbose=1;; --fresh|-f) fresh=1;; --default|-d) default=1 fresh=1;; --certsconf) shift CERTSCONF="$1";; --certsdir) shift CERTSDIR="$1";; --localcertsdir) shift LOCALCERTSDIR="$1";; --certbundle) shift CERTBUNDLE="$1";; --etccertsdir) shift ETCCERTSDIR="$1";; --hooksdir) shift HOOKSDIR="$1";; --help|-h|*) echo "$0: [--verbose] [--fresh]" exit;; esac shift done if [ ! -s "$CERTSCONF" ] then fresh=1 fi cleanup() { rm -f "$TEMPBUNDLE" rm -f "$ADDED" rm -f "$REMOVED" } trap cleanup 0 # Helper files. (Some of them are not simple arrays because we spawn # subshells later on.) TEMPBUNDLE="${ETCCERTSDIR}/${CERTBUNDLE}.new" ADDED="$(mktemp --tmpdir "ca-certificates.tmp.XXXXXX")" REMOVED="$(mktemp --tmpdir "ca-certificates.tmp.XXXXXX")" # Adds a certificate to the list of trusted ones. This includes a symlink # in /etc/ssl/certs to the certificate file and its inclusion into the # bundle. add() { CERT="$1" PEM="$ETCCERTSDIR/$(basename "$CERT" .crt | sed -e 's/ /_/g' \ -e 's/[()]/=/g' \ -e 's/,/_/g').pem" if ! test -e "$PEM" || [ "$(readlink "$PEM")" != "$CERT" ] then ln -sf "$CERT" "$PEM" echo "+$PEM" >> "$ADDED" fi # Add trailing newline to certificate, if it is missing (#635570) sed -e '$a\' "$CERT" >> "$TEMPBUNDLE" } remove() { CERT="$1" PEM="$ETCCERTSDIR/$(basename "$CERT" .crt).pem" if test -L "$PEM" then rm -f "$PEM" echo "-$PEM" >> "$REMOVED" fi } cd "$ETCCERTSDIR" if [ "$fresh" = 1 ]; then echo "Clearing symlinks in $ETCCERTSDIR..." find . -type l -print | while read symlink do case $(readlink "$symlink") in $CERTSDIR*|$LOCALCERTSDIR*) rm -f $symlink;; esac done find . -type l -print | while read symlink do test -f "$symlink" || rm -f "$symlink" done echo "done." fi echo "Updating certificates in $ETCCERTSDIR..." # Add default certificate authorities if requested if [ "$default" = 1 ]; then find -L "$CERTSDIR" -type f -name '*.crt' | sort | while read crt do add "$crt" done fi # Handle certificates that should be removed. This is an explicit act # by prefixing lines in the configuration files with exclamation marks (!). sed -n -e '/^$/d' -e 's/^!//p' "$CERTSCONF" | while read crt do remove "$CERTSDIR/$crt" done sed -e '/^$/d' -e '/^#/d' -e '/^!/d' "$CERTSCONF" | while read crt do if ! test -f "$CERTSDIR/$crt" then echo "W: $CERTSDIR/$crt not found, but listed in $CERTSCONF." >&2 continue fi add "$CERTSDIR/$crt" done # Now process certificate authorities installed by the local system # administrator. if [ -d "$LOCALCERTSDIR" ] then find -L "$LOCALCERTSDIR" -type f -name '*.crt' | sort | while read crt do add "$crt" done fi ADDED_CNT=$(wc -l < "$ADDED") REMOVED_CNT=$(wc -l < "$REMOVED") if [ "$ADDED_CNT" -gt 0 ] || [ "$REMOVED_CNT" -gt 0 ] then # only run if set of files has changed # Remove orphan symlinks found in ETCCERTSDIR to prevent `openssl rehash` # from exiting with an error. See #895482, #895473. find $ETCCERTSDIR -type l ! -exec test -e {} \; -print | while read orphan do rm -f "$orphan" if [ "$verbose" = 1 ]; then echo "Removed orphan symlink $orphan" fi done if [ "$verbose" = 0 ] then openssl rehash . > /dev/null else openssl rehash -v . fi fi # chmod and mv only if TEMPBUNDLE exists or install may fail, #996005 if [ -f "$TEMPBUNDLE" ] then chmod 0644 "$TEMPBUNDLE" mv -f "$TEMPBUNDLE" "$CERTBUNDLE" # Restore proper SELinux label after moving the file [ -x /sbin/restorecon ] && /sbin/restorecon "$CERTBUNDLE" >/dev/null 2>&1 fi echo "$ADDED_CNT added, $REMOVED_CNT removed; done." if [ -d "$HOOKSDIR" ] then echo "Running hooks in $HOOKSDIR..." VERBOSE_ARG= [ "$verbose" = 0 ] || VERBOSE_ARG="--verbose" eval run-parts "$VERBOSE_ARG" --test -- "$HOOKSDIR" | while read hook do ( cat "$ADDED" cat "$REMOVED" ) | "$hook" || echo "E: $hook exited with code $?." done echo "done." fi # vim:set et sw=2:
Save
cmd:
run