Skip to content

Conversation

@PJHsieh
Copy link

@PJHsieh PJHsieh commented Mar 24, 2025

Description

The issue arises because, after a system reboot, the permissions of /var/cache/sonic/decode-syseeprom/ or its file /var/cache/sonic/decode-syseeprom/syseeprom_cache may be incorrectly set. This misconfiguration can cause the Platform API to require root privileges for access.

This problem has been observed in various platforms, such as the AS7326_56X, where running show platform syseeprom results in errors due to permission issues.

Motivation and Context

To address this, it's essential to ensure that the cache directory and its files have the correct permissions set upon system startup. Implementing a fix that adjusts these permissions appropriately can prevent the Platform API from requiring root privileges, thereby resolving the issue.

How Has This Been Tested?

Reboot and use admin account to run show platform syseeprom.

Additional Information (Optional)

sonic-net/sonic-platform-common#546

Issue and Root Cause:
The issue arises because, after a system reboot, the permissions of /var/cache/sonic/decode-syseeprom/ or its file
/var/cache/sonic/decode-syseeprom/syseeprom_cache may be incorrectly set. This misconfiguration can cause the
Platform API to require root privileges for access.

This problem has been observed in various platforms, such as the AS7326_56X, where running show platform syseeprom
results in errors due to permission issues.

Solution:
To address this, it's essential to ensure that the cache directory and its files have the correct permissions set upon
system startup. Implementing a fix that adjusts these permissions appropriately can prevent the Platform API from
requiring root privileges, thereby resolving the issue.
@vincentchiang-ec vincentchiang-ec merged commit 03ada7b into 202311.X Mar 24, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants