File: gnome-keyring.ubiquity

package info (click to toggle)
gnome-keyring 3.28.2-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 12,440 kB
  • sloc: ansic: 77,096; sh: 4,898; makefile: 1,332; xml: 420; python: 401; sed: 16
file content (14 lines) | stat: -rw-r--r-- 493 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
set -e

# Make sure that the IPC_LOCK capability is added to the gnome-keyring-daemon
# binary after installation, since file system caps aren't supported by the
# LiveCD's squashfs.

PROGRAM=/usr/bin/gnome-keyring-daemon

if [ -e /target/sbin/setcap ] && [ -e /target/$PROGRAM ]; then
    if chroot /target setcap CAP_IPC_LOCK=ep $PROGRAM >/dev/null 2>&1; then
        logger --tag ubiquity "Setting capabilities for gnome-keyring-daemon using Linux Capabilities failed."
    fi
fi