Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setarch: arch param should be optional #668

Closed
bmwiedemann opened this issue Jul 25, 2018 · 3 comments
Closed

setarch: arch param should be optional #668

bmwiedemann opened this issue Jul 25, 2018 · 3 comments

Comments

@bmwiedemann
Copy link

During our (openSUSE package) build processes, I often find places where I need to disable ASLR to make output reproducible .

setarch -R $command

would really be a lot nicer than

setarch `uname -m` -R $command
# which has trouble on ARM, or
setarch `arch` -R $command
# dont know if that is better... maybe not, looking at
setarch i386 arch
i686
@bmwiedemann
Copy link
Author

bmwiedemann commented Jul 25, 2018

@karelzak karelzak added the TODO We going to think about it ;-) label Aug 6, 2018
@karelzak
Copy link
Collaborator

karelzak commented Aug 6, 2018

Seems like a good idea -- it's probably mistake that setarch is mostly about execution domains than more commonly about personalities.

karelzak referenced this issue Aug 7, 2018
Let's allow to change personality flags without execution domain
modification.

Old way:
  setarch `arch` --addr-no-randomize myprog

New way:
  setarch --addr-no-randomize myprog

Addresses: https://github.com/karelzak/util-linux/issues/668
Signed-off-by: Karel Zak <kzak@redhat.com>
@karelzak karelzak removed the TODO We going to think about it ;-) label Aug 7, 2018
@karelzak
Copy link
Collaborator

karelzak commented Aug 7, 2018

Implemented.

@karelzak karelzak closed this as completed Aug 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants