Fix missing /data/sec_storage_data
This commit is contained in:
parent
51be51649b
commit
494da1a8dc
14
rw-system.sh
14
rw-system.sh
@ -534,7 +534,12 @@ if [ -c /dev/dsm ];then
|
||||
chown system:system /dev/dsm
|
||||
chmod 0660 /dev/dsm
|
||||
|
||||
# The presence of /dev/dsm indicates that we have a teecd, which needs /sec_storage
|
||||
# The presence of /dev/dsm indicates that we have a teecd,
|
||||
# which needs /sec_storage and /data/sec_storage_data
|
||||
|
||||
mkdir -p /data/sec_storage_data
|
||||
chown system:system /data/sec_storage_data
|
||||
chcon -R u:object_r:teecd_data_file:s0 /data/sec_storage_data
|
||||
|
||||
mount | grep " on /sec_storage " > /dev/null 2>&1
|
||||
if [ "$?" -eq "0" ]; then
|
||||
@ -543,11 +548,12 @@ if [ -c /dev/dsm ];then
|
||||
# the fingerprint daemon (running as system) cannot access it.
|
||||
chown -R system:system /sec_storage
|
||||
chmod -R 0660 /sec_storage
|
||||
chcon -R u:object_r:teecd_data_file:s0 /sec_storage
|
||||
else
|
||||
# No /sec_storage provided by vendor, create our own
|
||||
mkdir -p /data/sec_storage_data
|
||||
chown system:system /data/sec_storage_data
|
||||
# No /sec_storage provided by vendor, mount /data/sec_storage_data to it
|
||||
mount /data/sec_storage_data /sec_storage
|
||||
chown system:system /sec_storage
|
||||
chcon u:object_r:teecd_data_file:s0 /sec_storage
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user