🏡 index : ~doyle/pisshoff.git

author Jordan Doyle <jordan@doyle.la> 2023-06-25 13:23:55.0 +01:00:00
committer Jordan Doyle <jordan@doyle.la> 2023-06-25 13:42:23.0 +01:00:00
commit
6ca494ccaa345251528dcf0e7036107d3167227c [patch]
tree
de31114de89b656e52539254d8a50fef284f17d8
parent
a3e948a934e078a9c9693f8d4ebab91451783d30
download
6ca494ccaa345251528dcf0e7036107d3167227c.tar.gz

Fix duplicated type value in audit json



Diff

 src/audit.rs | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/audit.rs b/src/audit.rs
index 59ad985..1f019e2 100644
--- a/src/audit.rs
+++ a/src/audit.rs
@@ -135,31 +135,27 @@
}

#[derive(Debug, Serialize)]
#[serde(tag = "type", rename_all = "kebab-case")]
pub struct ExecCommandEvent {
    pub args: Box<[String]>,
}

#[derive(Debug, Serialize)]
#[serde(tag = "type", rename_all = "kebab-case")]
pub struct WindowAdjustedEvent {
    pub new_size: usize,
}

#[derive(Debug, Serialize)]
#[serde(tag = "type", rename_all = "kebab-case")]
pub struct SubsystemRequestEvent {
    pub name: Box<str>,
}

#[derive(Debug, Serialize)]
#[serde(tag = "type", rename_all = "kebab-case")]
pub struct SignalEvent {
    pub name: Box<str>,
}

#[derive(Debug, Serialize)]
#[serde(tag = "type", rename_all = "kebab-case")]
#[serde(tag = "credential-type", rename_all = "kebab-case")]
pub enum LoginAttemptEvent {
    UsernamePassword {
        username: Box<str>,