bash_go_service/shared/pkg/constants/constants.go

17 lines
727 B
Go

package constants
const (
MaxRules = 128 // 最大规则数量
MaxArgs = 32 // 每条规则的最大参数数量
MaxRuleCmdLength = 256 // 规则命令的最大长度
MaxRuleTypeLength = 32 // 规则类型的最大长度
MaxRuleMsgLength = 256 // 规则消息的最大长度
MaxArgLength = 128 // 单个参数的最大长度
ShmKey = 0x78945 // 共享内存的键值
ShmSize = 1024 * 1024 // 共享内存的大小(字节)
SoPath = "/tmp/exec_hook" // 共享库路径
SoName = "intercept.so" // Hook 文件名称
UpdateInfoFileName = "update_info.bin" // 更新信息文件名称
)