void protocol_print_filter(pid_t pid) {
	EUID_ASSERT();

	(void) pid;
#ifdef SYS_socket
	ProcessHandle sandbox = pin_sandbox_process(pid);

	// chroot in the sandbox
	process_rootfs_chroot(sandbox);
	unpin_process(sandbox);

	// find the seccomp filter
	struct stat s;
	if (stat(RUN_PROTOCOL_CFG, &s) != 0) {
		printf("Cannot access seccomp filter.\n");
		exit(1);
	}

	// read and print the filter
	EUID_ROOT();
	protocol_filter_load(RUN_PROTOCOL_CFG);

	if (cfg.protocol)
		printf("%s\n", cfg.protocol);
	exit(0);
#else
	fwarning("--protocol not supported on this platform\n");
	exit(1);
#endif
}
void protocol_print_filter(pid_t pid) {
	EUID_ASSERT();

	(void) pid;
#ifdef SYS_socket
	ProcessHandle sandbox = pin_sandbox_process(pid);

	 
	process_rootfs_chroot(sandbox);
	unpin_process(sandbox);

	 
	struct stat s;
	if (stat(RUN_PROTOCOL_CFG, &s) != 0) {
		printf("Cannot access seccomp filter.\n");
		exit(1);
	}

	 
	EUID_ROOT();
	protocol_filter_load(RUN_PROTOCOL_CFG);

	if (cfg.protocol)
		printf("%s\n", cfg.protocol);
	exit(0);
#else
	fwarning("--protocol not supported on this platform\n");
	exit(1);
#endif
}