Commit 75123c7
committed
Set the eeprom cache permissions to 755
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.1 parent cb5564c commit 75123c7
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
298 | 307 | | |
299 | 308 | | |
300 | 309 | | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
301 | 313 | | |
302 | 314 | | |
303 | 315 | | |
| |||
0 commit comments