All of lore.kernel.org
 help / color / mirror / Atom feed
* CVS patch
@ 2006-08-09 14:06 Eddy
  2006-08-09 16:55 ` Tom McCabe
  0 siblings, 1 reply; 3+ messages in thread
From: Eddy @ 2006-08-09 14:06 UTC (permalink / raw)
  To: ELKS

[-- Attachment #1: Type: text/plain, Size: 769 bytes --]

There is patchs for elks and elkscmd from CVS, in elkscmd i had to bring
bootblocks directory from dev86 sources and modify something in order to
build correctly "make comb".
I tried the built in qemu but init don't start yet.
Packages files from sf.net are broken, elks-0.1.3.tar.gz is still
unpackable, but it's not the same for elkscmd-(date).tar.gz, it's not
gzip format, nor bzip2, nor tar.
Some elks' web site links are not correct and not updated, i can help
you if I became developer, also as Italian translator.

Another strange thing is that there's no archive's list for this list,
am I writing to someone?? :P

Sincerely
                        Eddy.

Ps. I'll be on holidays for a tenth of days, and I'm quite sure I will
not able to receive mails.. C U.


[-- Attachment #2: patch-elks-CVS.patch --]
[-- Type: text/plain, Size: 1445 bytes --]

diff -Naur CVSori/elks/arch/i86/Makefile CVS/elks/arch/i86/Makefile
--- CVSori/elks/arch/i86/Makefile	2004-05-31 15:49:25.000000000 +0200
+++ CVS/elks/arch/i86/Makefile	2006-08-09 13:10:08.000000000 +0200
@@ -92,7 +92,7 @@
 	(cd $(BASEDIR) ; $(LD) $(LDFLAGS) $(ARCH_LD) \
 		$(ARCH_DIR)/sibo/crt0.o $(ARCH_DIR)/sibo/crt1.o \
 		init/main.o $(ARCHIVES) $(DRIVERS) \
-		-t -M -o $(ARCH_DIR)/boot/system > System.tmp ; \
+		-M -o $(ARCH_DIR)/boot/system > System.tmp ; \
 		sort -k4 System.tmp > System.map ; rm -f System.tmp ) 
 
 #SIBO image build
diff -Naur CVSori/elks/arch/i86/drivers/char/KeyMaps/mkcfg CVS/elks/arch/i86/drivers/char/KeyMaps/mkcfg
--- CVSori/elks/arch/i86/drivers/char/KeyMaps/mkcfg	2002-04-25 00:03:53.000000000 +0200
+++ CVS/elks/arch/i86/drivers/char/KeyMaps/mkcfg	2006-08-09 13:10:26.000000000 +0200
@@ -13,14 +13,14 @@
     printf '# Automatically created - do not edit.\n\n' >&3
     printf "choice 'XT Keyboard support'\t\t" >&3
     printf '/* Automatically created - do not edit */\n\n' >&4
-    while read FILE CODE NAME ; do
+    while read FILE CODE NAME ; do	
 	printf '\t\\\n\t%-12s\tCONFIG_KEYMAP_%s' >&3 \
 		"${SEP}${NAME}" "${CODE}"
 	SEP=' '
 	printf '#include "%s"\t\t/* %s\t%-9s\t*/\n' >&4 \
 		"${FILE}" "${CODE}" "${NAME}"
     done
-    printf '"\t\tAmerican\n\n# EOF.\n' >&3
+    printf '\"\n' >&3
 }
 
-codes | sort +1f | process 3> Config.in 4> keymaps.h
+codes | process 3> Config.in 4> keymaps.h

[-- Attachment #3: patch-elkscmd-CVS.patch.gz --]
[-- Type: application/gzip, Size: 64524 bytes --]

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

* Re: CVS patch
  2006-08-09 14:06 CVS patch Eddy
@ 2006-08-09 16:55 ` Tom McCabe
  0 siblings, 0 replies; 3+ messages in thread
From: Tom McCabe @ 2006-08-09 16:55 UTC (permalink / raw)
  To: linux-8086

I submitted a patch that did exactly that three times
and it wasn't accepted.

--- Eddy <eddyx89@gmail.com> wrote:

> There is patchs for elks and elkscmd from CVS, in
> elkscmd i had to bring
> bootblocks directory from dev86 sources and modify
> something in order to
> build correctly "make comb".
> I tried the built in qemu but init don't start yet.
> Packages files from sf.net are broken,
> elks-0.1.3.tar.gz is still
> unpackable, but it's not the same for
> elkscmd-(date).tar.gz, it's not
> gzip format, nor bzip2, nor tar.
> Some elks' web site links are not correct and not
> updated, i can help
> you if I became developer, also as Italian
> translator.
> 
> Another strange thing is that there's no archive's
> list for this list,
> am I writing to someone?? :P
> 
> Sincerely
>                         Eddy.
> 
> Ps. I'll be on holidays for a tenth of days, and I'm
> quite sure I will
> not able to receive mails.. C U.
> 
> > diff -Naur CVSori/elks/arch/i86/Makefile
> CVS/elks/arch/i86/Makefile
> --- CVSori/elks/arch/i86/Makefile	2004-05-31
> 15:49:25.000000000 +0200
> +++ CVS/elks/arch/i86/Makefile	2006-08-09
> 13:10:08.000000000 +0200
> @@ -92,7 +92,7 @@
>  	(cd $(BASEDIR) ; $(LD) $(LDFLAGS) $(ARCH_LD) \
>  		$(ARCH_DIR)/sibo/crt0.o $(ARCH_DIR)/sibo/crt1.o \
>  		init/main.o $(ARCHIVES) $(DRIVERS) \
> -		-t -M -o $(ARCH_DIR)/boot/system > System.tmp ; \
> +		-M -o $(ARCH_DIR)/boot/system > System.tmp ; \
>  		sort -k4 System.tmp > System.map ; rm -f
> System.tmp ) 
>  
>  #SIBO image build
> diff -Naur
> CVSori/elks/arch/i86/drivers/char/KeyMaps/mkcfg
> CVS/elks/arch/i86/drivers/char/KeyMaps/mkcfg
> --- CVSori/elks/arch/i86/drivers/char/KeyMaps/mkcfg
> 2002-04-25 00:03:53.000000000 +0200
> +++ CVS/elks/arch/i86/drivers/char/KeyMaps/mkcfg
> 2006-08-09 13:10:26.000000000 +0200
> @@ -13,14 +13,14 @@
>      printf '# Automatically created - do not
> edit.\n\n' >&3
>      printf "choice 'XT Keyboard support'\t\t" >&3
>      printf '/* Automatically created - do not edit
> */\n\n' >&4
> -    while read FILE CODE NAME ; do
> +    while read FILE CODE NAME ; do	
>  	printf '\t\\\n\t%-12s\tCONFIG_KEYMAP_%s' >&3 \
>  		"${SEP}${NAME}" "${CODE}"
>  	SEP=' '
>  	printf '#include "%s"\t\t/* %s\t%-9s\t*/\n' >&4 \
>  		"${FILE}" "${CODE}" "${NAME}"
>      done
> -    printf '"\t\tAmerican\n\n# EOF.\n' >&3
> +    printf '\"\n' >&3
>  }
>  
> -codes | sort +1f | process 3> Config.in 4>
> keymaps.h
> +codes | process 3> Config.in 4> keymaps.h
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

* cvs patch
@ 2008-06-30 20:09 Daniel J Walsh
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel J Walsh @ 2008-06-30 20:09 UTC (permalink / raw)
  To: Christopher J. PeBenito, SE Linux, lkundrak

[-- Attachment #1: Type: text/plain, Size: 91 bytes --]

cvs needs auth_use_nsswitch
Added cvsweb policy from Lubomir Rintel
Added _admin interface

[-- Attachment #2: cvs.patch --]
[-- Type: text/plain, Size: 3423 bytes --]

Subject: [PATCH] refpolicy: services_cvs changes
--text follows this line--
--- nsaserefpolicy/policy/modules/services/cvs.fc	2008-06-12 23:25:05.000000000 -0400
+++ serefpolicy-3.4.2/policy/modules/services/cvs.fc	2008-06-30 16:00:10.000000000 -0400
@@ -5,3 +5,6 @@
 
 /var/cvs(/.*)?		gen_context(system_u:object_r:cvs_data_t,s0)
 
+#CVSWeb file context
+/usr/share/cvsweb/cvsweb\.cgi	--	gen_context(system_u:object_r:httpd_cvs_script_exec_t,s0)
+/var/www/cgi-bin/cvsweb\.cgi	--	gen_context(system_u:object_r:httpd_cvs_script_exec_t,s0)
--- nsaserefpolicy/policy/modules/services/cvs.if	2008-06-12 23:25:05.000000000 -0400
+++ serefpolicy-3.4.2/policy/modules/services/cvs.if	2008-06-30 16:04:16.000000000 -0400
@@ -36,3 +36,70 @@
 
 	can_exec($1,cvs_exec_t)
 ')
+
+########################################
+## <summary>
+##	Execute cvs server in the cvs domain.
+## </summary>
+## <param name="domain">
+##	<summary>
+##	The type of the process performing this action.
+##	</summary>
+## </param>
+#
+#
+interface(`cvs_script_domtrans',`
+	gen_require(`
+		type cvs_script_exec_t;
+	')
+
+	init_script_domtrans_spec($1,cvs_script_exec_t)
+')
+
+########################################
+## <summary>
+##	All of the rules required to administrate 
+##	an cvs environment
+## </summary>
+## <param name="domain">
+##	<summary>
+##	Domain allowed access.
+##	</summary>
+## </param>
+## <param name="role">
+##	<summary>
+##	The role to be allowed to manage the cvs domain.
+##	</summary>
+## </param>
+## <param name="terminal">
+##	<summary>
+##	The type of the user terminal.
+##	</summary>
+## </param>
+## <rolecap/>
+#
+interface(`cvs_admin',`
+	gen_require(`
+		type cvs_t, cvs_tmp_t;
+		type cvs_data_t, cvs_var_run_t;
+		type cvs_script_exec_t;
+	')
+
+	allow $1 cvs_t:process { ptrace signal_perms };
+	ps_process_pattern($1, cvs_t)
+	        
+	# Allow cvs_t to restart the apache service
+	cvs_script_domtrans($1)
+	domain_system_change_exemption($1)
+	role_transition $2 cvs_script_exec_t system_r;
+	allow $2 system_r;
+
+	files_list_tmp($1)
+        manage_all_pattern($1,cvs_tmp_t)
+
+	manage_all_pattern($1,cvs_data_t)
+
+	files_list_pids($1)
+        manage_all_pattern($1,cvs_var_run_t)
+')
+
--- nsaserefpolicy/policy/modules/services/cvs.te	2008-06-12 23:25:05.000000000 -0400
+++ serefpolicy-3.4.2/policy/modules/services/cvs.te	2008-06-30 16:00:42.000000000 -0400
@@ -28,6 +28,9 @@
 type cvs_var_run_t;
 files_pid_file(cvs_var_run_t)
 
+type cvs_script_exec_t;
+init_script_type(cvs_script_exec_t)
+
 ########################################
 #
 # Local policy
@@ -69,6 +72,7 @@
 fs_getattr_xattr_fs(cvs_t)
 
 auth_domtrans_chk_passwd(cvs_t)
+auth_use_nsswitch(cvs_t)
 
 corecmd_exec_bin(cvs_t)
 corecmd_exec_shell(cvs_t)
@@ -86,8 +90,6 @@
 
 miscfiles_read_localization(cvs_t)
 
-sysnet_read_config(cvs_t)
-
 mta_send_mail(cvs_t)
 
 # cjp: typeattribute doesnt work in conditionals yet
@@ -103,10 +105,13 @@
 	kerberos_dontaudit_write_config(cvs_t)
 ')
 
-optional_policy(`
-	nis_use_ypbind(cvs_t)
-')
+########################################
+# CVSWeb policy
+
+apache_content_template(cvs)
+
+read_files_pattern(httpd_cvs_script_t, cvs_data_t, cvs_data_t)
+manage_dirs_pattern(httpd_cvs_script_t_t,cvs_tmp_t,cvs_tmp_t)
+manage_files_pattern(httpd_cvs_script_t,cvs_tmp_t,cvs_tmp_t)
+files_tmp_filetrans(httpd_cvs_script_t, cvs_tmp_t, { file dir })
 
-optional_policy(`
-	nscd_socket_use(cvs_t)
-')

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

end of thread, other threads:[~2008-06-30 20:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-09 14:06 CVS patch Eddy
2006-08-09 16:55 ` Tom McCabe
  -- strict thread matches above, loose matches on Subject: below --
2008-06-30 20:09 cvs patch Daniel J Walsh

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.