Project

General

Profile

action #99297

action #93441: [sle][security][sle15sp4][CC] CC hand over

[sle][security][sle15sp4][CC]with CC role,test fails in polkit_tests

Added by rfan1 over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Bugs in existing tests
Target version:
-
Start date:
2021-09-26
Due date:
% Done:

100%

Estimated time:
9.00 h
Difficulty:

Description

Observation

openQA test in scenario sle-15-SP4-Online-x86_64-cc_audit-test-part2@64bit fails in
polkit_tests

Test suite description

The base test suite is used for job templates defined in YAML documents. It has no settings of its own.

Reproducible

Fails since (at least) Build 39.1 (current job)

Expected result

Last good: 38.1 (or more recent)

Further details

Always latest result in this scenario: latest

History

#1 Updated by rfan1 over 1 year ago

  • Parent task set to #93441

#2 Updated by rfan1 over 1 year ago

RC:

sudo -u bernhard bash -c 'expect set_hostname.expect nots3cr3t myserver_5lZe'

spawn /usr/bin/hostnamectl set-hostname --pretty myserver_5lZe
==== AUTHENTICATING FOR org.freedesktop.hostname1.set-static-hostname ====
Authentication is required to set the statically configured local hostname, as well as the pretty hostname.
Authenticating as: root
polkit-agent-helper-1: needs to be setuid root
Error: Incorrect permissions on /usr/lib/polkit-1/polkit-agent-helper-1 (needs to be setuid root)
==== AUTHENTICATION FAILED ====
Could not set property: Access denied
send: spawn id exp4 not open
while executing
"send -- "$rootpwd\r""
(file "set_hostname.expect" line 15)

Need do more investigation.......

#3 Updated by rfan1 over 1 year ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 10
  • Estimated time set to 8.00 h

#4 Updated by rfan1 over 1 year ago

We may need setuid ?

#chmod u+s /usr/lib/polkit-1/polkit-agent-helper-1
But need confirm with developer at 1st

# ll /usr/lib/polkit-1/polkit-agent-helper-1
-rwxr-xr-x 1 root root 14392 May 31 07:51 /usr/lib/polkit-1/polkit-agent-helper-1
# chmod u+s /usr/lib/polkit-1/polkit-agent-helper-1
# ll /usr/lib/polkit-1/polkit-agent-helper-1
-rwsr-xr-x 1 root root 14392 May 31 07:51 /usr/lib/polkit-1/polkit-agent-helper-1
# ./run.bash 2 d
Testcase                                                                                                                                                Result
--------                                                                                                                                                ------
[2] polkit_success                                                                                                                                       PASS 

   1 pass (100%)
   0 fail (0%)
   0 error (0%)
------------------
   1 total

#5 Updated by rfan1 over 1 year ago

  • % Done changed from 10 to 80
  • Estimated time changed from 8.00 h to 9.00 h

#6 Updated by rfan1 over 1 year ago

  • Status changed from In Progress to Feedback
  • % Done changed from 80 to 90

PR merged, wait for next openqa run result.

#7 Updated by llzhao over 1 year ago

  • Assignee changed from rfan1 to Xiaojing_liu

#8 Updated by llzhao over 1 year ago

  • Assignee changed from Xiaojing_liu to rfan1

#9 Updated by rfan1 over 1 year ago

  • Status changed from Feedback to Resolved
  • % Done changed from 90 to 100

Also available in: Atom PDF