File tree Expand file tree Collapse file tree 5 files changed +12
-8
lines changed
key_info_managers/on_disk_manager Expand file tree Collapse file tree 5 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -393,7 +393,8 @@ if [ "$PROVIDER_NAME" = "all" ]; then
393393 # Needed because parsec-client-1 and 2 write to those locations owned by root
394394 chmod 777 /tmp/parsec/e2e_tests
395395 chmod 777 /tmp/
396- chmod -R 777 /opt/rust/registry
396+ chmod -R 775 /opt/rust/registry
397+ chgrp -R parsec-clients /opt/rust/registry
397398
398399 # PATH is defined before each command for user to use their own version of the Rust toolchain
399400 su -c " PATH=\" /home/parsec-client-1/.cargo/bin:${PATH} \" ;RUST_BACKTRACE=1 cargo test $TEST_FEATURES --manifest-path ./e2e_tests/Cargo.toml --target-dir /home/parsec-client-1 all_providers::multitenancy::client1_before" parsec-client-1
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ RUN apt install -y --fix-missing wget python3 cmake clang
1616RUN apt install -y libini-config-dev libcurl4-openssl-dev curl libgcc1
1717RUN apt install -y python3-distutils libclang-6.0-dev protobuf-compiler python3-pip
1818RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get -y install tzdata
19-
2019WORKDIR /tmp
2120
2221# Download and install TSS 2.0
@@ -107,8 +106,13 @@ COPY _exec_wrapper /usr/local/bin/
107106RUN ls /opt/rust/bin | xargs -n1 -I% ln -s /usr/local/bin/_exec_wrapper /usr/local/bin/$(basename %)
108107
109108# Add users for multitenancy tests
110- RUN useradd -m parsec-client-1
111- RUN useradd -m parsec-client-2
109+ RUN useradd -m parsec-client-1 \
110+ && useradd -m parsec-client-2 \
111+ && groupadd parsec-clients \
112+ && usermod -g parsec-clients parsec-client-1 \
113+ && usermod -g parsec-clients parsec-client-2 \
114+ && sed -i '/^UMASK/s/022/002/' /etc/login.defs
115+
112116
113117# Add `/usr/local/lib` to library path for Trusted service provider
114118ENV LD_LIBRARY_PATH="/usr/local/lib"
Original file line number Diff line number Diff line change @@ -97,8 +97,7 @@ impl BackEndHandler {
9797 }
9898
9999 if opcode. is_admin ( ) {
100- let app =
101- unwrap_or_else_return ! ( ( & app) . as_ref( ) . ok_or( ResponseStatus :: NotAuthenticated ) ) ;
100+ let app = unwrap_or_else_return ! ( app. as_ref( ) . ok_or( ResponseStatus :: NotAuthenticated ) ) ;
102101
103102 if !app. is_admin ( ) {
104103 warn ! (
Original file line number Diff line number Diff line change @@ -395,7 +395,7 @@ impl OnDiskKeyInfoManager {
395395 for provider_dir_path in list_dirs ( app_name_dir_path) ?. iter ( ) {
396396 for key_name_file_path in list_files ( provider_dir_path) ?. iter ( ) {
397397 let mut key_info = Vec :: new ( ) ;
398- let mut key_info_file = File :: open ( & key_name_file_path) . with_context ( || {
398+ let mut key_info_file = File :: open ( key_name_file_path) . with_context ( || {
399399 format ! (
400400 "Failed to open Key Info Mappings file at {:?}" ,
401401 key_name_file_path
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ impl Provider {
191191 }
192192 }
193193
194- if None == cryptoauthlib_provider. set_opcodes ( ) {
194+ if cryptoauthlib_provider. set_opcodes ( ) . is_none ( ) {
195195 warn ! ( "Failed to setup opcodes for cryptoauthlib_provider" ) ;
196196 }
197197
You can’t perform that action at this time.
0 commit comments