Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Side by Side Diff: tcsd.conf

Issue 6793028: Fixed a minor 'umask' that couldn't have worked. (Closed) Base URL: ssh://gitrw.chromium.org:9222/init.git@master
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # Trousers daemon, which talks to the TPM (or the TPM emulator). 5 # Trousers daemon, which talks to the TPM (or the TPM emulator).
6 # Started directly from tpm-probe. 6 # Started directly from tpm-probe.
7 7
8 # Note, this line is modified by chromeos-factoryinstall.ebuild 8 # Note, this line is modified by chromeos-factoryinstall.ebuild
9 # Please do not change without also changing this reference. 9 # Please do not change without also changing this reference.
10 stop on starting halt or starting reboot 10 stop on starting halt or starting reboot
11 11
12 respawn 12 respawn
13 expect fork 13 expect fork
14 14
15 pre-start script 15 pre-start script
16 export TPM_DEVICE_PATH=/dev/tpm # /dev/tpm0 may not be created yet 16 export TPM_DEVICE_PATH=/dev/tpm # /dev/tpm0 may not be created yet
17 17
18 # Temporary fix for BIOS bug. Very Soon[tm] this fix will be in the BIOS. 18 # Temporary fix for BIOS bug. Very Soon[tm] this fix will be in the BIOS.
diandersAtChromium 2011/04/04 23:50:15 I have asked Luigi if this is still needed.
diandersAtChromium 2011/04/05 03:10:37 FYI: this is fixed as <http://crosbug.com/13819>
19 status=$(/usr/bin/tpm_init_temp_fix || true) 19 status=$(/usr/bin/tpm_init_temp_fix || true)
20 /usr/bin/logger "tpm fix status: $status" 20 /usr/bin/logger "tpm fix status: $status"
21 # end of temporary fix 21 # end of temporary fix
22 22
23 # If we're booting in recovery mode, first do a sanity check of the TPM and 23 # If we're booting in recovery mode, first do a sanity check of the TPM and
24 # try to bring it to a sane state. Then clear the TPM owner and lock the 24 # try to bring it to a sane state. Then clear the TPM owner and lock the
25 # TPM down. 25 # TPM down.
26 binf1=/sys/devices/platform/chromeos_acpi/BINF.1 26 binf1=/sys/devices/platform/chromeos_acpi/BINF.1
jrbarnette 2011/04/05 00:52:38 There should be a bug filed for this obsolete usag
diandersAtChromium 2011/04/05 03:10:37 Done. <http://crosbug.com/13833>. Do you want to
27 if [ -e $binf1 -a "$(cat $binf1)" = "0" ]; then 27 if [ -e $binf1 -a "$(cat $binf1)" = "0" ]; then
28 /usr/sbin/chromeos-tpm-recovery /var/log/tpm-recovery.log \ 28 /usr/sbin/chromeos-tpm-recovery /var/log/tpm-recovery.log \
29 || logger "tpm-recovery: status $?" 29 || logger "tpm-recovery: status $?"
30 tpmc clear || logger "tpmc clear: status $?" 30 tpmc clear || logger "tpmc clear: status $?"
31 tpmc enable || logger "tpmc enable: status $?" 31 tpmc enable || logger "tpmc enable: status $?"
32 tpmc act || logger "tpmc act: status $?" 32 tpmc act || logger "tpmc act: status $?"
33 tpmc block || logger "tpmc block: status $?" 33 tpmc block || logger "tpmc block: status $?"
34 tpmc pplock || logger "tpmc pplock: status $?" 34 tpmc pplock || logger "tpmc pplock: status $?"
35 fi 35 fi
36 36
(...skipping 11 matching lines...) Expand all
48 [ ! -s /var/lib/tpm/system.data ]; then 48 [ ! -s /var/lib/tpm/system.data ]; then
49 if [ ! -e /var/lib/tpm ]; then 49 if [ ! -e /var/lib/tpm ]; then
50 mkdir -m 0700 -p /var/lib/tpm 50 mkdir -m 0700 -p /var/lib/tpm
51 fi 51 fi
52 current_mask=$(umask) 52 current_mask=$(umask)
53 umask 0177 53 umask 0177
54 cp --no-preserve=mode /etc/trousers/system.data.auth \ 54 cp --no-preserve=mode /etc/trousers/system.data.auth \
55 /var/lib/tpm/system.data 55 /var/lib/tpm/system.data
56 umask 0133 56 umask 0133
57 touch /var/lib/.tpm_owned 57 touch /var/lib/.tpm_owned
58 umask $(current_mask) 58 umask ${current_mask}
jrbarnette 2011/04/05 00:52:38 Yeesh. Yes, it was broken. The impact was more th
diandersAtChromium 2011/04/05 03:10:37 Done.
59 fi 59 fi
60 fi 60 fi
61 fi 61 fi
62 end script 62 end script
63 63
64 exec /usr/sbin/tcsd 64 exec /usr/sbin/tcsd
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698