New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 821057 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Sort out yaml schema permission

Project Member Reported by sjg@chromium.org, Mar 12 2018

Issue description

At present the yaml schema cannot be accessed by things which need it, because it is installed as root, with read permission not available to non-root users. The chromeos-config ebuild (which uses it) cannot access this when run without 'sudo':

>>> Compiling source in /build/reef/tmp/portage/chromeos-base/chromeos-config-0.0.1-r12/work ...
 * Adding /build/reef/usr/share/chromeos-config/dts/private-files.dtsi
 * Adding /build/reef/tmp/portage/chromeos-base/chromeos-config-0.0.1-r12/work/_dir_targets.dtsi
 * 2 files found
 * Validating config:
 * - OK
Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/cros_config_schema", line 9, in <module>
    load_entry_point('cros-config-host==1', 'console_scripts', 'cros_config_schema')()
  File "/usr/lib64/python2.7/site-packages/cros_config_host/v2/cros_config_schema.py", line 246, in main
    Main(args.schema, args.config, args.output, args.filter)
  File "/usr/lib64/python2.7/site-packages/cros_config_host/v2/cros_config_schema.py", line 227, in Main
    with open(schema, 'r') as schema_stream:
IOError: [Errno 13] Permission denied: '/usr/lib64/python2.7/site-packages/cros_config_host/v2/cros_config_schema.yaml'
Warning: Validation failed

 
Components: -Infra>Client>Chrome
mentioned offline: I'm not sure what the right component for these issues is, but it's not I>C>C.
Cc: bmgordon@chromium.org
Components: Infra>Client>ChromeOS
Just saw the same thing this morning.

/usr/lib64/python2.7/site-packages/cros_config_host/v2/cros_config_schema.yaml is installed as root:root with permissions 0640.  Manually changing to 0644 fixed validation for me.
Components: -Infra>Client>ChromeOS Infra>Client>ChromeOS>Build
Status: Assigned (was: Untriaged)

Sign in to add a comment