Project

General

Profile

Actions

action #99297

closed

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 2 years ago. Updated over 2 years 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

Actions #1

Updated by rfan1 over 2 years ago

  • Parent task set to #93441
Actions #2

Updated by rfan1 over 2 years 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.......

Actions #3

Updated by rfan1 over 2 years ago

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

Updated by rfan1 over 2 years 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

Actions #5

Updated by rfan1 over 2 years ago

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

Updated by rfan1 over 2 years ago

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

PR merged, wait for next openqa run result.

Actions #7

Updated by llzhao over 2 years ago

  • Assignee changed from rfan1 to Xiaojing_liu
Actions #8

Updated by llzhao over 2 years ago

  • Assignee changed from Xiaojing_liu to rfan1
Actions #9

Updated by rfan1 over 2 years ago

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

Also available in: Atom PDF