This file is indexed.

/usr/lib/keyringer/actions/teardown is in keyringer 0.3.8-1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bash
#
# Remove a keyring.
#

# Load functions
LIB="`dirname $0`/../functions"
source "$LIB" || exit 1

# Options
CONFIRM="$2"

# Confirmation
if [ -z "$CONFIRM" ] || [ "$CONFIRM" != "-y" ]; then
  echo "WARNING: about to remove the LOCAL copy of $KEYRING"
  echo "WARNING: This will irrevocably destroy $KEYDIR"
  echo "WARNING: the action cannot be undone!"

  read -rep "Are you sure to WIPE keyring $KEYRING (type YES to confirm)? " key
  if [ "$key" != "YES" ]; then
    exit 1
  fi
fi

# Teardown
keyringer_shred `dirname $KEYDIR`
keyringer_shred $HOME/.keyringer/$KEYRING
sed -i -e "/^$KEYRING=/d" $HOME/.keyringer/config