Bug 587102

Summary: /usr/bin/sandbox -- missing brace on line 277
Product: Red Hat Enterprise Linux 6 Reporter: Lubos Kocman <setuid>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED DUPLICATE QA Contact: Karel Srot <ksrot>
Severity: medium Docs Contact:
Priority: high    
Version: 6.0CC: ebenes, mmalik, notting
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: policycoreutils-2.0.82-12.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-04-30 13:34:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 519813    
Attachments:
Description Flags
fixed sandbox see diff for changes none

Description Lubos Kocman 2010-04-28 22:11:21 UTC
Created attachment 409977 [details]
fixed sandbox see diff for changes

Description of problem:

there is a missing brace ")" on line 277 in /usr/bin/sandbox

line 277 is following (missing brace):

277   subprocess.Popen(["/usr/bin/xmodmap","-pke"],stdout=xd.wait()


and should be 

277   subprocess.Popen(["/usr/bin/xmodmap","-pke"],stdout=xd.wait())


Version-Release number of selected component (if applicable):

bash-4.1$ cat /etc/redhat-release 
Red Hat Enterprise Linux release 6.0 Beta (Santiago)


bash-4.1$ rpm -qa | grep -i policy
policycoreutils-2.0.78-11.el6.i686
selinux-policy-3.7.17-5.el6.noarch
checkpolicy-2.0.19-3.1.el6.i686
polkit-desktop-policy-0.96-1.el6.noarch
selinux-policy-targeted-3.7.17-5.el6.noarch
policycoreutils-python-2.0.78-11.el6.i686


How reproducible:

bash-4.1$ sandbox
  File "/usr/bin/sandbox", line 278
    xd.close()

# after my "patch" -- appending brace on the end

bash-4.1$ sandbox
/usr/bin/sandbox: Command required

sandbox [-h] [-[X|M] [-H homedir] [-T tempdir]] [-I includefile ] [[-i file ] ...] [ -t type ] command


HTH

Lubos

Comment 1 Daniel Walsh 2010-04-29 18:23:33 UTC
Actually it should have been

subprocess.Popen(["/usr/bin/xmodmap","-pke"],stdout=xd).wait()

Which is is now.

Fixed in policycoreutils-2.0.82-12.el6

Comment 3 Eduard Benes 2010-04-30 13:34:25 UTC

*** This bug has been marked as a duplicate of bug 578634 ***