xref: /aosp_15_r20/system/security/keystore2/keystore2.rc (revision e1997b9af69e3155ead6e072d106a0077849ffba)
1*e1997b9aSAndroid Build Coastguard Worker# Start the keystore2 service.
2*e1997b9aSAndroid Build Coastguard Worker# Keystore 2.0 changes its working directory to the first positional
3*e1997b9aSAndroid Build Coastguard Worker# command line option, i.e., /data/misc/keystore, where it stores its
4*e1997b9aSAndroid Build Coastguard Worker# database.
5*e1997b9aSAndroid Build Coastguard Worker# Keystore shall run as user keystore and groups keystore, readproc, and log.
6*e1997b9aSAndroid Build Coastguard Worker#
7*e1997b9aSAndroid Build Coastguard Worker# See system/core/init/README.md for information on the init.rc language.
8*e1997b9aSAndroid Build Coastguard Worker
9*e1997b9aSAndroid Build Coastguard Workerservice keystore2 /system/bin/keystore2 /data/misc/keystore
10*e1997b9aSAndroid Build Coastguard Worker    class early_hal
11*e1997b9aSAndroid Build Coastguard Worker    user keystore
12*e1997b9aSAndroid Build Coastguard Worker    group keystore readproc log
13*e1997b9aSAndroid Build Coastguard Worker    task_profiles ProcessCapacityHigh
14*e1997b9aSAndroid Build Coastguard Worker    # The default memlock limit of 65536 bytes is too low for keystore.
15*e1997b9aSAndroid Build Coastguard Worker    rlimit memlock unlimited unlimited
16