WEBVTT 00:01.920 --> 00:12.300 In this movie you're going to take a very quick look at another trouble shooting situation and preparation 00:12.300 --> 00:14.130 for this demonstration. 00:14.130 --> 00:20.910 I've gone ahead and done some things that are going to cause SC Linux a bit of trouble. 00:21.330 --> 00:28.590 Sometimes when configuring applications if you make a customization you make a change. 00:28.590 --> 00:37.440 For example if you change an applications default directory or if you change the world in port if you 00:37.440 --> 00:43.620 don't tell a Linux about the change you're going to have problems and that's exactly what I've done 00:43.620 --> 00:43.930 here. 00:44.640 --> 00:56.190 So if we go through and locate the Apache web server configuration file and grab to show I document 00:56.190 --> 01:02.840 for it you can see that I've changed the default location of the Apache Web site. 01:02.970 --> 01:07.380 I've also gone ahead and created the requisite folder. 01:07.380 --> 01:08.970 So here's what I want you to do. 01:08.970 --> 01:18.720 I want you to go into this file and locate every line that says var dub dub dub hide t email and change 01:18.720 --> 01:21.500 it into forward slash dub dub dub. 01:21.900 --> 01:29.520 OK so if we go through and cap of the index file you can see the contents. 01:29.520 --> 01:37.710 I'm going to open up this file outside of the Apache web server so we can see what the Web site actually 01:37.830 --> 01:39.680 looks like. 01:40.170 --> 01:49.380 Now we can go ahead and test patches I'm going to control C out of that and I'm going to system CTO 01:49.590 --> 01:53.100 restart height TTP D. 01:54.750 --> 02:08.790 Let's follow that up with Firefox local host index dot height t AML just as expected. 02:08.880 --> 02:10.510 We have a problem. 02:10.800 --> 02:12.510 So let's control C out of that. 02:13.230 --> 02:19.470 Whenever you have a problem that you suspect is being caused by FC Linux the first thing you want to 02:19.470 --> 02:22.260 do is audit to allow. 02:22.260 --> 02:25.540 We've seen this before. 02:26.430 --> 02:35.160 If you take a look here it's telling us that we have a type enforcement issue and unlike before this 02:35.160 --> 02:40.020 time the original recommendation to set a boolean value to fix it. 02:40.470 --> 02:45.210 So we're gonna have to fix this ourselves. 02:45.300 --> 02:53.030 I'm going to Ella's dash Zee the dub dub dub to check the correct domain. 02:53.160 --> 02:55.010 So that's good and cover this out. 02:55.190 --> 03:03.250 The control shift C and I'm going to use the following command. 03:04.350 --> 03:13.410 This command will create a local group that assigns this domain to all files created in this directory 03:13.890 --> 03:23.940 from here on out before I go through and do another list 10. 03:24.180 --> 03:36.270 You can see that the current files still have the default type C change that I'm going to say these 03:36.360 --> 03:42.360 are for recursive Let's paste and the tie on for Slash dub dub dub. 03:43.470 --> 03:55.930 And we can verify it with another list in before testing our work lets system CTO restart height TBD 03:56.100 --> 03:57.170 again. 03:57.780 --> 04:00.360 And finally we can Firefox 04:02.700 --> 04:08.940 local host and voila there we go. 04:08.940 --> 04:14.400 So whenever you're faced with an SC Linux problem the first thing he wants to do is check the logs of 04:14.430 --> 04:20.270 audit to allow this is going to give you some idea on how to fix that issue. 04:20.310 --> 04:28.190 Remember that with the targeted policy most of the time the issues will relate to type enforcement. 04:28.410 --> 04:29.340 That's all for now. 04:29.340 --> 04:33.150 Thank you for your time and I hope to see you in the next lesson.