Page MenuHomeDevCentral

Use sudo to build php-ast
ClosedPublic

Authored by dereckson on Jan 18 2020, 04:30.
Tags
None
Referenced Files
F3957222: D2132.diff
Tue, Dec 31, 09:50
Unknown Object (File)
Thu, Dec 12, 06:42
Unknown Object (File)
Mon, Dec 9, 03:55
Unknown Object (File)
Thu, Dec 5, 00:43
Unknown Object (File)
Mon, Dec 2, 14:22
Unknown Object (File)
Nov 30 2024, 00:16
Unknown Object (File)
Nov 29 2024, 23:59
Unknown Object (File)
Nov 23 2024, 10:47
Subscribers
None

Details

Summary

When switching user with Salt, Perl can't run some privileges escalation
function like setgid. The same scripts work well through sudo.

This change fixes the following issue:

Insecure $ENV{PATH} while running setgid at /usr/local/bin/autom4te-2.69 line 92.
/opt/php-ast/__salt.tmp.0tbvmu8_.sh: ./configure: not found
make: no target to make.

Fixes T1557.

Test Plan

Tested on WindRiver

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Errors
SeverityLocationCodeMessage
Errorroles/devserver/userland-software/files/install-php-extension.sh:1ShellCheckSHELLCHECK
Unit
No Test Coverage
Branch
master
Build Status
Buildable 3319
Build 3568: arc lint + arc unit

Event Timeline

dereckson created this revision.
This revision is now accepted and ready to land.Jan 18 2020, 04:30
This revision was landed with ongoing or failed builds.Jan 18 2020, 04:31
This revision was automatically updated to reflect the committed changes.