__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
syntax = "proto3";
package apparmor_prompting;
import "google/protobuf/empty.proto";
import "google/protobuf/wrappers.proto";
service AppArmorPrompting {
rpc GetCurrentPrompt (google.protobuf.Empty) returns (GetCurrentPromptResponse);
rpc ReplyToPrompt (PromptReply) returns (PromptReplyResponse);
rpc ResolveHomePatternType (google.protobuf.StringValue) returns (ResolveHomePatternTypeResponse);
rpc SetLoggingFilter (google.protobuf.StringValue) returns (SetLoggingFilterResponse);
}
message PromptReply {
string prompt_id = 1;
Action action = 2;
Lifespan lifespan = 3;
oneof prompt_reply {
HomePromptReply home_prompt_reply = 4;
}
}
message PromptReplyResponse {
string message = 1;
oneof prompt_reply_type {
google.protobuf.Empty success = 2;
google.protobuf.Empty raw = 3;
google.protobuf.Empty prompt_not_found = 4;
google.protobuf.Empty rule_not_found = 5;
HomeRuleConflicts rule_conflicts = 6;
InvalidHomePermissions invalid_permissions = 7;
InvalidPathPattern invalid_path_pattern = 8;
ParseError parse_error = 9;
UnsupportedValue unsupported_value = 10;
}
message HomeRuleConflicts {
repeated HomeRuleConflict conflicts = 1;
}
message HomeRuleConflict {
HomePermission permission = 1;
string variant = 2;
string conflicting_id = 3;
}
message InvalidHomePermissions {
repeated HomePermission requested = 1;
repeated HomePermission replied = 2;
}
message InvalidPathPattern {
string requested = 1;
string replied = 2;
}
message ParseError {
string field = 1;
string value = 2;
}
message UnsupportedValue {
string field = 1;
repeated string supported = 2;
repeated string provided = 3;
}
}
enum Action {
ALLOW = 0;
DENY = 1;
}
enum Lifespan {
SINGLE = 0;
SESSION = 1;
FOREVER = 2;
}
enum HomePermission {
READ = 0;
WRITE = 1;
EXECUTE = 2;
}
message GetCurrentPromptResponse {
oneof prompt {
HomePrompt home_prompt = 1;
}
}
message HomePromptReply {
string path_pattern = 1;
repeated HomePermission permissions = 2;
}
message HomePrompt {
MetaData meta_data = 1;
string requested_path = 2;
string home_dir = 3;
repeated HomePermission requested_permissions = 4;
repeated HomePermission available_permissions = 5;
repeated HomePermission suggested_permissions = 6;
repeated PatternOption pattern_options = 7;
int32 initial_pattern_option = 8;
message PatternOption {
HomePatternType home_pattern_type = 1;
string path_pattern = 2;
bool show_initially = 3;
};
EnrichedPathKind enriched_path_kind = 9;
}
enum HomePatternType {
REQUESTED_DIRECTORY = 0;
REQUESTED_FILE = 1;
TOP_LEVEL_DIRECTORY = 2;
CONTAINING_DIRECTORY = 3;
HOME_DIRECTORY = 4;
MATCHING_FILE_EXTENSION = 5;
REQUESTED_DIRECTORY_CONTENTS = 6;
}
message MetaData {
string prompt_id = 1;
string snap_name = 2;
string store_url = 3;
string publisher = 4;
string updated_at = 5;
}
message ResolveHomePatternTypeResponse {
HomePatternType home_pattern_type = 1;
}
message SetLoggingFilterResponse {
string current = 1;
}
message EnrichedPathKind {
oneof kind {
HomeDir home_dir = 1;
TopLevelDir top_level_dir = 2;
SubDir sub_dir = 3;
HomeDirFile home_dir_file = 4;
TopLevelDirFile top_level_dir_file = 5;
SubDirFile sub_dir_file = 6;
}
}
message HomeDir {}
message TopLevelDir {
string dirname = 1;
}
message SubDir {}
message HomeDirFile {
string filename = 1;
}
message TopLevelDirFile {
string dirname = 1;
string filename = 2;
}
message SubDirFile {}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| apparmor-prompting.proto | File | 3.75 KB | 0644 |
|