Restore proper SELinux context for runtime created /var/run/nut directory
This commit is contained in:
		
							parent
							
								
									5b99c93354
								
							
						
					
					
						commit
						c79bcd71af
					
				
					 5 changed files with 8 additions and 3 deletions
				
			
		
							
								
								
									
										3
									
								
								debian/changelog
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								debian/changelog
									
										
									
									
										vendored
									
									
								
							|  | @ -2,8 +2,9 @@ nut (2.6.5-2) UNRELEASED; urgency=low | |||
| 
 | ||||
|   * debian/control: Move the nut-monitor Suggests from nut-server to | ||||
|     nut-client | ||||
|   * Restore proper SELinux context for runtime created /var/run/nut directory | ||||
| 
 | ||||
|  -- Laurent Bigonville <bigon@debian.org>  Mon, 13 Aug 2012 10:45:03 +0200 | ||||
|  -- Laurent Bigonville <bigon@debian.org>  Tue, 09 Oct 2012 23:38:10 +0200 | ||||
| 
 | ||||
| nut (2.6.5-1) experimental; urgency=low | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										3
									
								
								debian/nut-client.init
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								debian/nut-client.init
									
										
									
									
										vendored
									
									
								
							|  | @ -54,7 +54,8 @@ fi | |||
| check_var_directory() { | ||||
|   [ ! -d ${pid_dir} ] && mkdir -p ${pid_dir} \ | ||||
|     && chown root:nut ${pid_dir} \ | ||||
|     && chmod 770 ${pid_dir} | ||||
|     && chmod 770 ${pid_dir} \ | ||||
|     && [ -x /sbin/restorecon ] && /sbin/restorecon ${pid_dir} | ||||
| } | ||||
| 
 | ||||
| # check if the right components are running | ||||
|  |  | |||
							
								
								
									
										1
									
								
								debian/nut-client.postinst
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								debian/nut-client.postinst
									
										
									
									
										vendored
									
									
								
							|  | @ -36,6 +36,7 @@ case "$1" in | |||
|     if [ -d /var/run/nut ] ; then | ||||
|         chown root:nut /var/run/nut | ||||
|         chmod 770 /var/run/nut | ||||
| 	[ -x /sbin/restorecon ] && /sbin/restorecon /var/run/nut | ||||
|     fi | ||||
|     ;; | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										3
									
								
								debian/nut-server.init
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								debian/nut-server.init
									
										
									
									
										vendored
									
									
								
							|  | @ -52,7 +52,8 @@ fi | |||
| check_var_directory() { | ||||
|   [ ! -d ${pid_dir} ] && mkdir -p ${pid_dir} \ | ||||
|     && chown root:nut ${pid_dir} \ | ||||
|     && chmod 770 ${pid_dir} | ||||
|     && chmod 770 ${pid_dir} \ | ||||
|     && [ -x /sbin/restorecon ] && /sbin/restorecon ${pid_dir} | ||||
| } | ||||
| 
 | ||||
| # check if the right components are running | ||||
|  |  | |||
							
								
								
									
										1
									
								
								debian/nut-server.postinst
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								debian/nut-server.postinst
									
										
									
									
										vendored
									
									
								
							|  | @ -36,6 +36,7 @@ case "$1" in | |||
|     if [ -d /var/run/nut ] ; then | ||||
|         chown root:nut /var/run/nut | ||||
|         chmod 770 /var/run/nut | ||||
| 	[ -x /sbin/restorecon ] && /sbin/restorecon /var/run/nut | ||||
|     fi | ||||
| 
 | ||||
|     # make sure that /var/lib/nut has the correct permissions and ownerships | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue