Skip to content

Conversation

@pmarkowsky
Copy link
Owner

This PR adds support for setting the limited set of cs flags that you can via csops.

e.g.

$  sudo ./target/debug/csops-bin status 826                 
PID: 826 cs_flags: 637623057; CS_VALID ; CS_FORCED_LV ; CS_HARD ; CS_KILL ; CS_RESTRICT ; CS_ENFORCEMENT ; CS_ENTITLEMENTS_VALIDATED ; CS_RUNTIME ; CS_NO_UNTRUSTED_HELPERS ; CS_PLATFORM_BINARY ; CS_SIGNED 
[ user@Mac (10:40PM) ~/src/csops-rs  ]                                                                             
$  sudo ./target/debug/csops-bin -v 0x00400000 set-status 826 
PID: 826 cs_flags: 4194304; CS_EXEC_SET_ENFORCEMENT 
[ user@Mac (10:44PM) ~/src/csops-rs  ]                                                                             
$  sudo ./target/debug/csops-bin status 826                  
PID: 826 cs_flags: 641817361; CS_VALID ; CS_FORCED_LV ; CS_HARD ; CS_KILL ; CS_RESTRICT ; CS_ENFORCEMENT ; CS_ENTITLEMENTS_VALIDATED ; CS_RUNTIME ; CS_EXEC_SET_ENFORCEMENT ; CS_NO_UNTRUSTED_HELPERS ; CS_PLATFORM_BINARY ; CS_SIGNED 

@pmarkowsky pmarkowsky merged commit 3bde018 into main Mar 22, 2025
2 checks passed
@pmarkowsky pmarkowsky deleted the plm/add-csops-set-status branch March 22, 2025 02:51
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

Successfully merging this pull request may close these issues.

2 participants