Skip to content

Commit

Permalink
Merge pull request #365 from bytedance/rasp/fix/class_keep
Browse files Browse the repository at this point in the history
  • Loading branch information
AlkenePan authored Nov 24, 2022
2 parents b836b65 + 39da330 commit 6afb949
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rasp/jvm/JVMProbe/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@

-keep class com.security.smith.SmithAgent {*;}

-keep class com.security.smith.log.* {*;}

-keep class com.security.smith.SmithProbe {
public void detect(int, int, java.lang.Object[]);
public void trace(int, int, java.lang.Object[], java.lang.Object, boolean);
public static com.security.smith.SmithProbe getInstance();
}
}
2 changes: 2 additions & 0 deletions rasp/rasp_server/src/proto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,9 @@ pub struct ProbeConfigLimit {
pub struct ProbeConfigPatch {
pub class_name: String,
pub url: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub path: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub sum_hash: Option<String>,
}

Expand Down

0 comments on commit 6afb949

Please sign in to comment.