View | Details | Raw Unified | Return to bug 38903
Collapse All | Expand All

(-)a/data/osec.cron (+8 lines)
Lines 110-115 case "${PRESERVE_PRIVILEGES-}" in Link Here
110
		;;
110
		;;
111
esac
111
esac
112
112
113
read_only=
114
case "${READ_ONLY-}" in
115
	1|[Yy]|[Yy][Ee][Ss])
116
		read_only=1
117
		;;
118
esac
119
113
(
120
(
114
	rc=0
121
	rc=0
115
	$cmd /usr/bin/osec \
122
	$cmd /usr/bin/osec \
Lines 117-122 esac Link Here
117
		${IGNORE_FIELDS:+-i "$IGNORE_FIELDS"} \
124
		${IGNORE_FIELDS:+-i "$IGNORE_FIELDS"} \
118
		${HASH_TYPE:+-t "$HASH_TYPE"} \
125
		${HASH_TYPE:+-t "$HASH_TYPE"} \
119
		${allow_root:+-R} \
126
		${allow_root:+-R} \
127
		${read_only:+-r} \
120
		-D "$DATABASE_DIR" \
128
		-D "$DATABASE_DIR" \
121
		-f "$DIRS_FILE" ||
129
		-f "$DIRS_FILE" ||
122
		rc=$?
130
		rc=$?
(-)a/data/pipe.conf (+6 lines)
Lines 26-31 IGNORE_FIELDS= Link Here
26
# then leave this variable empty otherwise write 'yes'.
26
# then leave this variable empty otherwise write 'yes'.
27
PRESERVE_PRIVILEGES=
27
PRESERVE_PRIVILEGES=
28
28
29
# Read-only mode for report-only osec runs. When osec is running in
30
# read-only mode it doesn't update the database files making each
31
# run report about changes until the database is updated (by running
32
# osec in read-write mode).
33
READ_ONLY=
34
29
# Do not generate a report, if there was no change.
35
# Do not generate a report, if there was no change.
30
# WARNING: This is very dangerous to enable this option,
36
# WARNING: This is very dangerous to enable this option,
31
# because if the osec will be disabled by intruder,
37
# because if the osec will be disabled by intruder,

Return to bug 38903