All of lore.kernel.org
 help / color / mirror / Atom feed
* [refpolicy] I think we made a large mistake when we designed apache_content_template.
@ 2013-10-23 17:57 Daniel J Walsh
  2013-10-23 19:13 ` Dominick Grift
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Daniel J Walsh @ 2013-10-23 17:57 UTC (permalink / raw)
  To: refpolicy

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

	type httpd_$1_content_t; # customizable;
	typeattribute httpd_$1_content_t httpd_content_type;
	typealias httpd_$1_content_t alias httpd_$1_script_ro_t;
	files_type(httpd_$1_content_t)

	# This type is used for .htaccess files
	type httpd_$1_htaccess_t, httpd_content_type; # customizable;
	typeattribute httpd_$1_htaccess_t httpd_content_type;
	files_type(httpd_$1_htaccess_t)

THe problem I believe is we prefix the types with httpd_, I would like to
remove this and change the code to something like


	type $1_http_content_t; # customizable;
	typeattribute $1_http_content_t httpd_content_type;
	files_type($1_http_content_t)

	# This type is used for .htaccess files
	type $1_http_htaccess_t, httpd_content_type; # customizable;
	typeattribute $1_http_htaccess_t httpd_content_type;
	files_type($1_http_htaccess_t)

	# Type that CGI scripts run as
	type $1_cgi_t,	httpd_script_type;
	domain_type($1_cgi_t)
	role system_r types $1_cgi_t;	
	type $1_cgi_exec_t, httpd_script_exec_type; # customizable;
	typeattribute $1_cgi_exec_t httpd_content_type;
	typeattribute httpd_$1_rw_content_t httpd_content_type;

	typealias $1_http_rw_content_t alias { httpd_$1_script_rw_t
httpd_$1_content_rw_t };
	files_type($1_http_rw_content_t)

...

Then tools can look for all content which begins bugzilla and have the correct
types drawn.

http://danwalsh.livejournal.com/67007.html

Shows the problem of begging all apache cgi domains with httpd_

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlJoDfEACgkQrlYvE4MpobMFXgCglA+7JfwUFhQ/YgBrmCDOBsfs
AJMAoJ1s5x+hOe6UHq0Mv41S6DIhxgkv
=j8Ab
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-10-23 20:22 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-23 17:57 [refpolicy] I think we made a large mistake when we designed apache_content_template Daniel J Walsh
2013-10-23 19:13 ` Dominick Grift
2013-10-23 19:14 ` Sven Vermeulen
2013-10-23 19:29   ` Dominick Grift
2013-10-23 19:30     ` Dominick Grift
2013-10-23 19:40     ` Daniel J Walsh
2013-10-23 19:38 ` Dominick Grift
2013-10-23 19:44   ` Daniel J Walsh
2013-10-23 20:22     ` Dominick Grift

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.