You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried to disassemble the binary, but i am not good at assembly code. So I am trying to learn Go assembly. However, it seems there are some differences between Go assembly and disassembly code.
The text was updated successfully, but these errors were encountered:
bigMacro
changed the title
root user setcap returns EPERM on centos6
compiler: root user setcap returns EPERM on centos6
Jun 7, 2020
Well, I think i konw the answer... 64-bit capabilities use datap[0] and datap[1], whereas 32-bit capabilities use only datap[0]. SetCap2 only supports the datap[0] and datap[1] is undefined...
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?cat /etc/centos-release
Outputgo env
OutputWhat did you do?
source code
compile the source code
set cap and run
What did you expect to see?
Output is:
What did you see instead?
Output is:
Other important information
I have tried to disassemble the binary, but i am not good at assembly code. So I am trying to learn Go assembly. However, it seems there are some differences between Go assembly and disassembly code.
The text was updated successfully, but these errors were encountered: