File: ccs-ld-watch

package info (click to toggle)
ccstools 1.7.2-20100401-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 984 kB
  • ctags: 1,080
  • sloc: ansic: 20,286; sh: 890; makefile: 80
file content (45 lines) | stat: -rwxr-xr-x 1,234 bytes parent folder | download
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#! /bin/sh

if [ "$1" = "--version" ]
then
cat << EOF
ccs-ld-watch 1.7.2

Copyright (C) 2005-2010 NTT DATA CORPORATION.

This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
EOF
elif [ "$1" = "--help" ]
then
cat << EOF
Usage: ccs-ld-watch

Appends shared libraries to exception policy automatically using "allow_read" directive when the location of shared libraries in /etc/ld.so.cache has changed.

By running this program while updating packages, you can avoid errors "unable to start applications because shared libraries are unreadable" when the pathnames of shared libraries accessed by general programs has changed.

Examples:

# ccs-ld-watch

EOF
else
cat << EOF | help2man -i - -N -s 8 -n "Update TOMOYO Linux's library's pathnames automatically" $0 | gzip -9 > man8/ccs-ld-watch.8.gz
[SEE ALSO]

 ccs-queryd (8)

[NOTES]

 You need to register either path to this program ( /usr/sbin/ccs-ld-watch ) or a domain for this program in /proc/ccs/manager before invoking this program.

 This program is obsolete. You can run ccs-queryd instead of running this program.

[AUTHORS]

 penguin-kernel _at_ I-love.SAKURA.ne.jp

EOF
fi
exit 0