Wednesday, October 2, 2019

Paul Hindemith :: essays research papers fc

  Ã‚  Ã‚  Ã‚  Ã‚  Paul was born in the German town of Hanau in 1895, on December Sixteen. We might assume that Hindemith felt a pull in the musical direction from a very early age; Paul’s father was a painter and did not want his son becoming a musician, so our little composer-to-be ran away at the age of 11, and started his own life. Paul taught himself the violin and viola, and began earning his living by playing at Cafes and other such establishments. Eventually, Hindemith learned the rudiments of all the instruments that mattered, so he could play them at least passably-- but he was surely a virtuoso at his viola and viola d’amore.   Ã‚  Ã‚  Ã‚  Ã‚  Eventually, Hindemith ended up at the Frankfurt Conservatory, where he studied his music performance under the tutelage of people like Arnold Mendelssohn. While there, Hindemith showed increasing interest in the field of composition-- he began writing in earnest around the time he completed his courses at the Conservatory, and began establishing himself in the music culture through chamber music and expressionistic opera.   Ã‚  Ã‚  Ã‚  Ã‚  Paul landed a pretty major job in the Frankfurt Opera Orchestra... he was first concertmaster, and then conductor over the years 1915-1923. After this, he founded his Amar String Quartet, for which he was violist-- the group became pretty celebrated and performed successfully throughout Europe. It’s agreed that 1921 was when Hindemith began to come into his own, and emerge as well-known into the world as a composer and performer. Hindemith appeared regularly at the Donaueschingen Festival starting that year, and in 1922-24 his Chamber Works were performed at the Salzburg Festival (which I assume was a fairly big deal at the time).   Ã‚  Ã‚  Ã‚  Ã‚  Up until about 1925, Hindemith was pretty conventional, going along more or less complacently with the musical norms of his time. But in 1925, he came out with â€Å"Kammermusik†, his first openly atonal composition. The piece was representative of new ideas, and roused lots of talk when it was performed at the Venice Festival of the International Society of Contemporary Music. Before he knew it, Paul was a sort of pioneer, a figurehead of the advancing frontier in â€Å"Modern Music†.   Ã‚  Ã‚  Ã‚  Ã‚  Ah-- during these years of his life, Hindemith was working as a professor of Composition at the Berlin Hochschule.   Ã‚  Ã‚  Ã‚  Ã‚  It was around 1934 that Hindemith started having some trouble with the Nazis. For one, they didn’t like his music. In fact, Alfred Rosenberg, who was Chief of Nazi Foreign Affairs, said his musics were the â€Å"foulest perversions of German music.† Obviously, the Nazis gave his career

Egypt :: essays research papers

Egypt   Ã‚  Ã‚  Ã‚  Ã‚  Egypt is a Middle Eastern country located in the northeast corner of Africa. A small part of Egypt, called the Sinai Peninsula, is located in Asia. Deserts cover most of Egypt, so it gets little rain, but the longest river in the world, the Nile River, flows through the desert and is key to living for many Egyptians. Almost all of Egypt’s population, about 99%, is located near the Nile or along the Suez Canal, another body of water important to Egyptian life, although together they cover only four percent of Egypt’s total land. The largest city, Cairo, has a population of about 6 million. About 10 million people live in the Cairo metropolitan area. Alexandria, a port city, is the second largest. Egyptian cities are extremely crowded and have inadequate public transportation, causing lots of traffic. They do have crowded streetcars and trains, though.   Ã‚  Ã‚  Ã‚  Ã‚  Many Egyptians consider themselves Arabs. The Bedouins, who are nomads, make up a distinct ethnic minority among the Arab population. Most have settled down on farms, but some tribes still wander. The major non-Arab minority are the Nubians. They originally lived in villages along the Nile in northern Sudan and the very bottom of Egypt, called the Nubian Valley. When the Aswan High Dam was constructed in the 1960’s, it forced the Nubians to move higher up on the Nile.   Ã‚  Ã‚  Ã‚  Ã‚  Arabic is the official language of Egypt. Regional Arabic dialects have their own variations of sounds and words. The most widely used dialect is that of Cairo’s. The Bedouin dialect is different from the settled residents of the Nile Valley. Some people in desert villages even speak Berber. Many educated Egyptians also speak English or French in addition to Arabic.   Ã‚  Ã‚  Ã‚  Ã‚  Egyptian city life is much different than its village life. City residents deal with normal city problems such as housing shortages and traffic. Most of city residents live in poverty, although others enjoy special conveniences and services. Villagers regularly live much like their ancestors did hundreds of years ago, getting by growing crops and tending animals.   Ã‚  Ã‚  Ã‚  Ã‚  Egyptian cities have a wide range of wealth. Good-looking residential areas exist near widespread slums. Lack of satisfactory housing is a major problem. Many people live together in small apartments. Others build makeshift huts on land that belongs to others, or on roofs of apartments. Some of Cairo’s poorest citizens take shelter in historic tombs on the outskirts of the city, in a place call the City of the Dead.

Tuesday, October 1, 2019

Cultural Impacts Essay

â€Å"Culture (from the Latin cultura stemming from colere, meaning â€Å"to cultivate,†) generally refers to patterns of human activity and the symbolic structures that give such activity significance. Different definitions of â€Å"culture† reflect different theoretical bases for understanding, or criteria for evaluating, human activity. In general, the term culture denotes the whole product of an individual, group or society of intelligent beings. It includes technology, art, science, as well as moral systems and the characteristic behaviors and habits of the selected intelligent entities. †(Wikipedia) Any culture can be viewed as a blend of values, norms, institutions and artifacts of a civilization that has been passed on from generations through learning alone. The ideological perspective of life and the significance of things in it form the values of a society. Norms, are the expected collective behavior of the people where as the institutions are the structures within the society that transmit theses values and norms. Also, artifacts are the relics or the materialistic representation of a culture, derived from within it. Thus, cultures basically evolve and thrive on the basis of religion, historical background, environment and the social structure. Religious beliefs are typically the central themes of different cultures and more often than not the basic values are a derivative of them. For example, the 10 Commandments of Christianity or the five precepts of Buddhism are guidelines that transform the behavior of their followers. Similarly, religion occasionally is also implicated with government, as in a theocracy. The European and the New World cultures have been profoundly influenced by Christianity for at least the last 500 to 1700 years. Likewise Islam’s influence has fashioned a great deal of the North African, Middle and Far East regions for more than a 1000 years. Historical incidents also add new dimensions to any culture. For instance, most of the Commonwealth countries and the Europe celebrate a public holiday on the Boxing Day. On this day, the people organize feasts, festivals and certain sports in order to celebrate and also to share these rejoicing moments with the poor and the needy. There is no precise basis of this cultural carnival but only some theories that stem out from some historical happenings. Some believe that it was a day when people presented gifts to those who had worked throughout the year for them. Others argue that it was an annual gathering of extended families in the feudal times in which the lord of the estate handed out stipends to the serfs. Another group disputes that it was basically the day of the year when the church would distribute its donation money to the poor. Whatever may be the explanation, the Boxing Day is now an integral part of the western culture. (Wikipedia) The influence of different cultures on trade and commerce is profoundly instrumental and therefore it is not surprising that business tactics have diversely evolved in different regions of the world. In fact, the technological developments of the late 1990’s, in the arena of electronic media have added new dimensions to the concept. Consequently, the global giants of the corporate sector have been lavishly investing in examination of the cultural influences on the regional economies in order to maximize profits. â€Å"In China, for example, the foundation of Chinese respect for hierarchy and the family social collective is based upon the relational norms expounded by the Confucius and legal codes such as those developed during the Tang Dynasty. This institutionalized relational logic has shaped a society whose transactional order rests on social obligation to higher authority and to the family rather than on rules oriented to protecting the individual. Chinese capitalism is seen to be intrinsically different from the Western capitalism because of this contrast in institutional framing over a long period of time. † (Warner 2003) These and other brands of cultural values of a society are carefully considered when industries are being setup or when corporations are being established. This facilitates in determining the managerial skills required in the executive professionals who are responsible for communicating and representing their companies within the local industries. A working paper series issued from the George Washington University, discusses the U. S. /Mexican business alliances negotiations and the impact of their respective cultures on them. Mexico’s mestizo culture with its strong collectivist touch has embedded the people with the capacity to share power or authority equitably and the gift to accept and tolerate uncertainty and ambiguity in situations. However, they have also inherited the aptitude for individualism and tend to get involved in a loosely held social structure with little or no care for others. This is contrary to the culture in the United States, where people long for absolute power, are highly skeptical of ambiguous scenarios and more often than not downplay relationships. All, this along with the socio-political history of the two nations-which has been marred by discords and suspicion- is significantly determining in their mutual business alliances. (Teegen and Doh 2002) Moreover, the cultural heritage of a region characterize the production and sale of several products that otherwise do not correspond to the world wide demand. For instance, the annual Basant euphoria in the Punjabi region of the Indo-Pakistan, in which people fly kites and festivals are organized, much business is spawned. It becomes the very attraction for the tourists who converge here from all parts of the world, and the economic activity generated only in the city of Lahore has been estimated to be around PK Rupees 1. 5 to 2 billion annually. The proceeds of the events are shared by almost every one including the people belonging to the seasonal cottage industries and even the local vendors. Thus, the big corporations plunge into the scene and grab at every opportunity to escalate sales. The competitive environment forces them to inspect the cultural characteristics of the event and then to employ this knowledge in launching innovative products in the market as well as in transforming their already existing marketing techniques. (The News 2007) For a progressive business structuring in a region or country, political culture-which itself is a subsidiary of the social culture-can be of immense significance. An illustration can be vividly observed in the political history of Pakistan and the revolutionary rule of its Premier Mr. Zulfiqar Ali Bhutto (1973-77), which was influenced by the socialism philosophy of the Soviet Union. He aggressively followed these policies and nationalized most of the Pakistan’s industries. (Wikipedia) Consequently, the foreign investors and the big multinationals lost faith in the country and capital were taken out of the country. Locally, twenty two families in Pakistan had owned most of these nationalized banks, companies and industrial units. Sadly, this resulted into a deindustrialization in Pakistan, as none of the families have ventured in to even a single industrial project since the last 28 years. (Pakistan link) â€Å"In the fall of 1991, in the midst of the NAFTA negotiations, Vitro Sociedad Anonima (Vitro), the $3 billion Mexican glass maker, had signed a tentative $800 million joint venture with Corning Inc. †¦Ã¢â‚¬ ¦Just two years later, the joint venture was dissolved. According to company officials and external analysts, cultural differences were a principal cause of the alliance’s failure. † (Teegen and Doh 2002) Investigations showed that the Mexicans believed that Corning was a bit impulsive in their decision making; the Americans felt Vitro had a very time-consuming approach. Vitro management despised the frankness of the Americans, while polite Vitro executives, sometimes gave Americans the impression that they were reluctant to admit concerns and errors. (Teegen and Doh 2002) Thus, when businesses are being setup in different regions of the world, there is a need to develop a correlation between the corporate and the social cultures. References Babar Sattar. Immorality of Basant http://www. thenews. com. pk/daily_detail. asp? id=45221 Accessed: June 9, 2007 Boxing Day – Wikipedia, the free encyclopedia http://en. wikipedia. org/wiki/Boxing_Day Accessed: June 9, 2007 Culture – Wikipedia, the free encyclopedia http://en. wikipedia. org/wiki/Culture Accessed: June 9, 2007 Hildy J. Teegen (The George Washington University) and Jonathan P. Doh (Villanova University)-April 2002. â€Å"U. S. /Mexican Business Alliance Negotiations: Impact of Culture on Authority, Trust and Performance†. White Paper (The George Washington University). Malcom Warner . Culture and Management in Asia. Routledge, 2003 Who Owns Pakistan http://www. pakistanlink. com/hussaini/09-10-99. html#top Accessed: June 9, 2007 Zulfikar Ali Bhutto – Wikipedia, the free encyclopedia http://en. wikipedia. org/wiki/Zulfiqar_Ali_Bhutto Accessed: June 9, 2007

Monday, September 30, 2019

Selinux

Blueprints First Steps with Security-Enhanced Linux (SELinux): Hardening the Apache Web Server Blueprints First Steps with Security-Enhanced Linux (SELinux): Hardening the Apache Web Server Note Before using this information and the product it supports, read the information in â€Å"Notices† on page 17. First Edition (August 2009)  © Copyright IBM Corporation 2009. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Introduction . . . . . . . . . . . . . v First Steps with Security-Enhanced Linux (SELinux): Hardening the Apache Web Server . . . . . . . . . . . . 1 Scope, requirements, and support Security-Enhanced Linux overview Access control: MAC and DAC SELinux basics. . . . . . SELinux and Apache . . . . Installing and running HTTPD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 1 1 2 5 5 HTTPD and context types . . . . . . . . . 5 HTTPD and SE Linux Booleans . . . . . . . 8 Configuring HTTPD security using SELinux . . . . 9 Securing Apache (static content only) . . . . . 9 Hardening CGI scripts with SELinux . . . . . 12 Appendix. Related information and downloads . . . . . . . . . . . . . 15 Notices . . . . . . . . . . . . . . 17 Trademarks . . . . . . . . . . . . . 18  © Copyright IBM Corp. 2009 iii iv Blueprints: First Steps with Security-Enhanced Linux (SELinux): Hardening the Apache Web Server Introduction This blueprint provides a brief introduction to basic Security-Enhanced Linux (SELinux) commands and concepts, including Boolean variables. In addition, the paper shows you how to increase the security of the Apache Web server with SELinux by using these concepts. Key tools and technologies discussed in this demonstration include security-enhanced Linux (SELinux), mandatory access control (MAC), getenforce, sestatus, getsebool, and setsebool. Intended audienceThis blueprint is intended for Linux system or network administrators who want to learn more about securing their systems with SELinux. You should be familiar with installing and configuring Linux distributions, networks, and the Apache Web server. Scope and purpose This paper provides a basic overview of SELinux, SELinux Boolean variables, and hardening Apache on Red Hat Enterprise Linux (RHEL) 5. 3. For more information about configuring RHEL 5. 3, see the documentation supplied with your installation media or the distribution Web site. For more information about SELinux, see â€Å"Related information and downloads,† on page 15.Software requirements This blueprint is written and tested using Red Hat Enterprise Linux (RHEL) 5. 3. Hardware requirements The information contained in this blueprint is tested on different models of IBM System x and System p hardware. For a list of hardware supported by RHEL 5. 3, see the documentation supplied with your Linux distribution. Author names Robert Sisk Other contributors Monza Lui Kersten Richter Robb Romans IBM Services Linux offers flexibility, options, and competitive total cost of ownership with a world class enterprise operating system.Community innovation integrates leading-edge technologies and best practices into Linux. IBM ® is a leader in the Linux community with over 600 developers in the IBM Linux Technology Center working on over 100 open source projects in the community. IBM supports Linux on all IBM servers, storage, and middleware, offering the broadest flexibility to match your business needs.  © Copyright IBM Corp. 2009 v For more information about IBM and Linux, go to ibm. com/linux (https://www. ibm. com/linux) IBM Support Questions and comments regarding this documentation can be posted on the developerWorks Security Blueprint Community Forum: http://www. bm. com/developerworks/forums/forum. jspa? forumID=1271 The IBM developerWorks ® discussion forums let you ask questions, share knowledge, ideas, and opinions about technologies and progr amming techniques with other developerWorks users. Use the forum content at your own risk. While IBM will attempt to provide a timely response to all postings, the use of this developerWorks forum does not guarantee a response to every question that is posted, nor do we validate the answers or the code that are offered. Typographic conventionsThe following typographic conventions are used in this Blueprint: Bold Identifies commands, subroutines, keywords, files, structures, directories, and other items whose names are predefined by the system. Also identifies graphical objects such as buttons, labels, and icons that the user selects. Identifies parameters whose actual names or values are to be supplied by the user. Identifies examples of specific data values, examples of text like what you might see displayed, examples of portions of program code like what you might write as a programmer, messages from the system, or information you should actually type.Italics Monospace Related ref erence: â€Å"Scope, requirements, and support† on page 1 This blueprint applies to System x ® running Linux and PowerLinux. You can learn more about the systems to which this information applies. vi Blueprints: First Steps with Security-Enhanced Linux (SELinux): Hardening the Apache Web Server First Steps with Security-Enhanced Linux (SELinux): Hardening the Apache Web Server Scope, requirements, and support This blueprint applies to System x running Linux and PowerLinux. You can learn more about the systems to which this information applies.Systems to which this information applies System x running Linux and PowerLinux Security-Enhanced Linux overview Security-Enhanced Linux (SELinux) is a component of the Linux operating system developed primarily by the United States National Security Agency. SELinux provides a method for creation and enforcement of mandatory access control (MAC) policies. These policies confine users and processes to the minimal amount of privilege req uired to perform assigned tasks. For more information about the history of SELinux, see http://en. wikipedia. org/wiki/Selinux.Since its release to the open source community in December 2000, the SELinux project has gained improvements such as predefined Boolean variables that make it easier to use. This paper helps you understand how to use these variables to configure SELinux policies on your system and to secure the Apache httpd daemon. Related reference: â€Å"Scope, requirements, and support† This blueprint applies to System x running Linux and PowerLinux. You can learn more about the systems to which this information applies. Access control: MAC and DAC Access level is important to computer system security.To compromise a system, attackers try to gain any possible level of access and then try to escalate that level until they are able to obtain restricted data or make unapproved system modifications. Because each user has some level of system access, every user account on your system increases the potential for abuse. System security has historically relied on trusting users not to abuse their access, but this trust has proven to be problematic. Today, server consolidation leads to more users per system. Outsourcing of Systems Management gives legitimate access, often at the system administrator level, to unknown users.Because server consolidation and outsourcing can be financially advantageous, what can you do to prevent abuse on Linux systems? To begin to answer that question, let's take a look at discretionary access control (DAC) and mandatory access control (MAC) and their differences. Discretionary access control (DAC), commonly known as file permissions, is the predominant access control mechanism in traditional UNIX and Linux systems. You may recognize the drwxr-xr-x or the ugo abbreviations for owner, group, and other permissions seen in a directory listing. In DAC, generally the resource owner (a user) controls who has access to a resour ce.For convenience, some users commonly set dangerous DAC file permissions that allow every user on the system to read, write, and execute many files that they own. In addition, a process started by a user can modify or delete any file to which the user has access. Processes that elevate their privileges high enough could therefore modify or delete system files. These instances are some of the disadvantages of DAC.  © Copyright IBM Corp. 2009 1 In contrast to DAC, mandatory access control (MAC) regulates user and process access to resources based upon an organizational (higher-level) security policy.This policy is a collection of rules that specify what types of access are allowed on a system. System policy is related to MAC in the same way that firewall rules are related to firewalls. SELinux is a Linux kernel implementation of a flexible MAC mechanism called type enforcement. In type enforcement, a type identifier is assigned to every user and object. An object can be a file or a process. To access an object, a user must be authorized for that object type. These authorizations are defined in a SELinux policy. Let's work through some examples and you will develop a better understanding of MAC and how it relates to SELinux.Related reference: â€Å"Scope, requirements, and support† on page 1 This blueprint applies to System x running Linux and PowerLinux. You can learn more about the systems to which this information applies. SELinux basics It is a good practice not to use the root user unless necessary. However for demonstrating how to use SELinux, the root user is used in the examples in this blueprint. Some of the commands shown require root privileges to run them; for example, running getenforce and editing the /etc/selinux/config file. Related reference: â€Å"Scope, requirements, and support† on page 1 This blueprint applies to System x running Linux and PowerLinux.You can learn more about the systems to which this information applies. Run modes You can enable or disable SELinux policy enforcement on a Red Hat Enterprise Linux system during or after operating system installation. When disabled, SELinux has no effect on the system. When enabled, SELinux runs in one of two modes: v Enforcing: SELinux is enabled and SELinux policy is enforced v Permissive: SELinux is enabled but it only logs warnings instead of enforcing the policy When prompted during operating system installation, if you choose to enable SELinux, it is installed with a default security policy and set to run in the enforcing mode.Confirm the status of SELinux on your system. Like in many UNIX or Linux operating systems, there is more than one way to perform a task. To check the current mode, run one of the following commands: getenforce, sestatus, or cat /etc/selinux/config. v The getenorce command returns the current SELinux run mode, or Disabled if SELinux is not enabled. In the following example, getenforce shows that SELinux is enabled and enforcin g the current SELinux policy: [[email  protected] ~]$ getenforce EnforcingIf your system is displaying Permissive or Disabled and you want to follow along with the instructions, change the /etc/selinux/config file to run in Enforcing mode before continuing with the demonstration. Remember that if you are in Disabled mode, you should change first to Permissive and then to Enforcing. v The setstatus command returns the current run mode, along with information about the SELinux policy if SELinux is enabled. In the following example, setstatus shows that SELinux is enabled and enforcing the current SELinux policy: [[email  protected] ~]$ sestatus SELinux status: SELinuxfs mount: enabled /selinux Blueprints: First Steps with Security-Enhanced Linux (SELinux): Hardening the Apache Web Server Current mode: Mode from config file: Policy version: Policy from config file: enforcing enforcing 21 targeted v The /etc/selinux/config file configures SELinux and controls the mode as well as the active policy. Changes to the /etc/selinux/config file become effective only after you reboot the system. In the following example, the file shows that the mode is set to enforcing and the current policy type is targeted. [[email  protected] ~]$ cat /etc/selinux/config # This file controls the state of SELinux on the system. SELINUX= can take one of these three values: # enforcing – SELinux security policy is enforced. # permissive – SELinux prints warnings instead of enforcing. # disabled – SELinux is fully disabled. SELINUX=enforcing # SELINUXTYPE= type of policy in use. Possible values are: # targeted – Only targeted network daemons are protected. # strict – Full SELinux protection. SELINUXTYPE=targeted To enable SELinux, you need to set the value of the SELINUX parameter in the /etc/selinux/config file to either enforcing or permissive. If you enable SELinux in the config file, you must reboot your system to start SELinux.We recommend that y ou set SELINUX=permissive if the file system has never been labeled, has not been labeled recently, or you are not sure when it was last labeled. Note that file system labeling is the process of assigning a label containing security-relevant information to each file. In SELinux a file label is composed of the user, role, and type such as system_u:object_r:httpd_sys_content_t. Permissive mode ensures that SELinux does not interfere with the boot sequence if a command in the sequence occurs before the file system relabel is completed. Once the system is up and running, you can change the SELinux mode to enforcing.If you want to change the mode of SELinux on a running system, use the setenforce command. Entering setenforce enforcing changes the mode to enforcing and setenforce permissive changes the mode to permissive. To disable SELinux, edit the /etc/selinux/config file as described previously and reboot. You cannot disable or enable SELinux on a running system from the command line; you can only switch between enforcing and permissive when SELinux is enabled. Change the mode of SELinux to permissive by entering the following command: [[email  protected] ~]$ setenforce permissiveRecheck the output from getenforce, sestatus, and cat /etc/selinux/config. v The getenforce command returns Permissive, confirming the mode change: [[email  protected] ~]$ getenforce Permissive v The sestatus command also returns a Permissive mode value: [[email  protected] ~]$sestatus SELinux status: SELinuxfs mount: Current mode: Mode from config file: Policy version: Policy from config file: enabled /selinux permissive enforcing 21 targeted v After changing the mode to permissive, both the getenforce and sestatus commands return the correct permissive mode.However, look carefully at the output from the sestatus command: [[email  protected] ~]$ cat /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enfo rcing – SELinux security policy is enforced. # permissive – SELinux prints warnings instead of enforcing. First Steps with Security-Enhanced Linux (SELinux) 3 # disabled – SELinux is fully disabled. SELINUX=enforcing # SELINUXTYPE= type of policy in use. Possible values are: # targeted – Only targeted network daemons are protected. # strict – Full SELinux protection.SELINUXTYPE=targeted [[email  protected] ~]$ The Mode from config file parameter is enforcing. This setting is consistent with the cat /etc/selinux/config output because the config file was not changed. This status implies that the changes made by the setenforce command does not carry over to the next boot. If you reboot, SELinux returns to run state as configured in /etc/selinux/conf in enforcing mode. Change the running mode back to enforcing by entering the following command: [[email  protected] ~]$ setenforce enforcing The following output confirms the mode change: [[email  pr otected] ~]$ getenforce EnforcingRelated reference: â€Å"Scope, requirements, and support† on page 1 This blueprint applies to System x running Linux and PowerLinux. You can learn more about the systems to which this information applies. Security contexts The concept of type enforcement and the SELinux type identifier were discussed in the Overview. Let's explore these concepts in more detail. The SELinux implementation of MAC employs a type enforcement mechanism that requires every subject and object to be assigned a type identifier. The terms subject and object are defined in the Bell-La Padula multilevel security model (see http://en. wikipedia. rg/wiki/Bell-La_Padula_model for more information). Think of the subject as a user or a process and the object as a file or a process. Typically, a subject accesses an object; for example, a user modifies a file. When SELinux runs in enforcing mode, a subject cannot access an object unless the type identifier assigned to the subje ct is authorized to access the object. The default policy is to deny all access not specifically allowed. Authorization is determined by rules defined in the SELinux policy. An example of a rule granting access may be as simple as: allow httpd_t httpd_sys_content_t : file {ioctol read getattr lock};In this rule, the subject http daemon, assigned the type identifier of httpd_t, is given the permissions ioctol, read, getattr, and lock for any file object assigned the type identifier httpd_sys_content_t. In simple terms, the http daemon is allowed to read a file that is assigned the type identifier httpd_sys_content_t. This is a basic example of an allow rule type. There are many types of allow rules and some are very complex. There are also many type identifiers for use with subjects and objects. For more information about rule definitions, see: SELinux by Example in the â€Å"Related information and downloads,† on page 15 section.SELinux adds type enforcement to standard Linux distributions. To access an object, the user must have both the appropriate file permissions (DAC) and the correct SELinux access. An SELinux security context contains three parts: the user, the role, and the type identifier. Running the ls command with the –Z switch displays the typical file information as well as the security context for each item in the subdirectory. In the following example, the security context for the index. html file is composed of user_u as the user, object_r as the role, and httpd_sys_content_t as the type identifier [[email  protected] html]$ ls -Z index. tml -rw-r–r– web_admin web_admin user_u:object_r:httpd_sys_content_t index. html 4 Blueprints: First Steps with Security-Enhanced Linux (SELinux): Hardening the Apache Web Server Related reference: â€Å"Scope, requirements, and support† on page 1 This blueprint applies to System x running Linux and PowerLinux. You can learn more about the systems to which this information a pplies. SELinux and Apache Related reference: â€Å"Scope, requirements, and support† on page 1 This blueprint applies to System x running Linux and PowerLinux. You can learn more about the systems to which this information applies.Installing and running HTTPD Now that you have a general understanding of the SELinux security context, you can secure an Apache Web server using SELinux. To follow along, you must have Apache installed on your system. You can install Apache on Red Hat Linux by entering the following command: [[email  protected] html]$ yum install httpd Next, start the Apache http daemon by entering service httpd start, as follows: [[email  protected] html]$ service httpd start Starting httpd: Related reference: â€Å"Scope, requirements, and support† on page 1 This blueprint applies to System x running Linux and PowerLinux.You can learn more about the systems to which this information applies. HTTPD and context types Red Hat Enterprise Linux 5. 3, at th e time of this writing, uses selinux-policy-2. 4. 6-203. el5. This policy defines the security context for the http daemon object as httpd_t. Because SELinux is running in enforcing mode, entering /bin/ps axZ | grep httpd produces the following output: [[email  protected] html]$ ps axZ | grep http rootroot:system_r:httpd_t 2555 ? Ss 0:00 /usr/sbin/httpd rootroot:system_r:httpd_t 2593 ? S 0:00 /usr/sbin/httpd rootroot:system_r:httpd_t 2594 ? S 0:00 /usr/sbin/httpd root:system_r:httpd_t 2595 ?S 0:00 /usr/sbin/httpd root:system_r:httpd_t 2596 ? S 0:00 /usr/sbin/httpd root:system_r:httpd_t 2597 ? S 0:00 /usr/sbin/httpd root:system_r:httpd_t 2598 ? S 0:00 /usr/sbin/httpd root:system_r:httpd_t 2599 ? S 0:00 /usr/sbin/httpd root:system_r:httpd_t 2600 ? S 0:00 /usr/sbin/httpd The Z option to ps shows the security context for the httpd processes as root:system_r:httpd_t, confirming that httpd is running as the security type httpd_t. The selinux-policy-2. 4. 6-203. el5 also defines several file security context types to be used with the http daemon. For a listing, see the man page for httpd_selinux.The httpd_sys_content_t context type is used for files and subdirectories containing content to be accessible by the http daemon and all httpd scripts. Entering ls –Z displays the security context for items in the default http directory (/var/www/), as follows: [[email  protected] ~]$ ls -Z /var/www/ | grep html drwxr-xr-x root root system_u:object_r:httpd_sys_content_t html First Steps with Security-Enhanced Linux (SELinux) 5 The /var/www/html directory is the default location for all Web server content (defined by the variable setting of DocumentRoot /var/www/html in the /etc/httpd/conf/httpd. conf http configuration file).This directory is assigned the type httpd_sys_content_t as part of its security context which allows the http daemon to access its contents. Any file or subdirectory inherits the security context of the directory in which it is created; therefo re a file created in the html subdirectory inherits the httpd_sys_content_t type. In the following example, the root user creates the index. html file in the /root directory. The index. html inherits the security root:object_r:user_home_t context which is the expected security context for root in RHEL 5. 3. [[email  protected] ~]$ touch /root/index. html [[email  protected] ~]$ ls -Z /root/index. tml -rw-r–r– root root root:object_r:user_home_t /root/index. html If the root user copies the newly created index. html file to the /var/www/html/ directory, the file inherits the security context (httpd_sys_content_t) of the html subdirectory because a new copy of the file is created in the html subdirectory: [[email  protected] ~]$ cp /root/index. html /var/www/html [[email  protected] ~]$ ls -Z /var/www/html/index. html -rw-r–r– root root user_u:object_r:httpd_sys_content_t /var/www/html/index. html If you move the index. html file instead of copying it, a new file is not created in the html subdirectory and index. tml retains the user_home_t type: [[email  protected] ~]$ mv -f /root/index. html /var/www/html [[email  protected] ~]$ ls -Z /var/www/html/index. html -rw-r–r– root root user_u:object_r:user_home_t /var/www/html/index. html When a Web browser or network download agent like wget makes a request to the http daemon for the moved index. html file, with user_home_t context, the browser is denied access because SELinux is running in enforcing mode. [[email  protected] ~]# wget localhost/index. html –21:10:00– http://localhost/index. html Resolving localhost†¦ 127. 0. 0. 1 Connecting to localhost|127. 0. 0. 1|:80†¦ onnected. HTTP request sent, awaiting response†¦ 403 Forbidden 21:10:00 ERROR 403: Forbidden. SELinux generates error messages in both /var/log/messages and /var/log/httpd/error_log. The following message in /var/log/httpd/error_log is not very helpful because it t ells you only that access is being denied: [Wed May 20 12:47:57 2009] [error] [client 172. 16. 1. 100] (13) Permission denied: access to /index. html denied The following error message in /var/log/messages is more helpful because it tells you why SELinux is preventing access to the /var/www/html/index. html file – a potentially mislabeled file.Furthermore, it provides a command that you can use to produce a detailed summary of the issue. May 20 12:22:48 localhost setroubleshoot: SELinux is preventing the httpd from using potentially mislabeled files (/var/www/html/index. html). For complete SELinux messages. run sealert -l 9e568d42-4b20-471c-9214-b98020c4d97a Entering sealert –l 9e568d42-4b20-471c-9214-b98020c4d97 as suggested in the previous error message returns the following detailed error message: [[email  protected] ~]$ sealert –l 9e568d42-4b20-471c-9214-b98020c4d97 Summary: SELinux is preventing the httpd from using potentially mislabeled files (/var/www /html/index. html).Detailed Description: SELinux has denied httpd access to potentially mislabeled file(s) (/var/www/html/index. html). This means that SELinux will not allow httpd to use these files. It is common for users to edit files in their home directory or tmp directories and then 6 Blueprints: First Steps with Security-Enhanced Linux (SELinux): Hardening the Apache Web Server move (mv) them to system directories. The problem is that the files end up with the wrong file context which confined applications are not allowed to access. Allowing Access: If you want httpd to access this files, you need to relabel them using restorecon -v ’/var/www/html/index. tml’. You might want to relabel the entire directory using restorecon -R -v ’/var/www/html’. Additional Information: Source Context root:system_r:httpd_t Target Context root:object_r:user_home_t Target Objects /var/www/html/index. html [ file ] Source httpd Source Path /usr/sbin/httpd Port Host loc alhost. localdomain Source RPM Packages httpd-2. 2. 3-22. el5 Target RPM Packages Policy RPM selinux-policy-2. 4. 6-203. el5 Selinux Enabled True Policy Type targeted MLS Enabled True Enforcing Mode Enforcing Plugin Name home_tmp_bad_labels Host Name localhost. localdomain Platform Linux localhost. ocaldomain 2. 6. 18-128. 1. 10. el5 #1 SMP Wed Apr 29 13:55:17 EDT 2009 i686 i686 Alert Count 24 First Seen Fri May 15 13:36:32 2009 Last Seen Wed May 20 12:47:56 2009 Local ID 9e568d42-4b20-471c-9214-b98020c4d97a Line Numbers Raw Audit Messages host=localhost. localdomain type=AVC msg=audit(1242838076. 937:1141): avc: denied { getattr } for pid=3197 comm=†httpd† path=†/var/www/html/index. html† dev=dm-0 ino=3827354 scontext=root:system_r:httpd_t:s0 context=root:object_r:user_home_t:s0 tclass=file host=localhost. localdomain type=SYSCALL msg=audit(1242838076. 37:1141): arch=40000003 syscall=196 success=no exit=-13 a0=8eaa788 a1=bfc8d49c a2=419ff4 a3=2008171 items=0 ppid=3273 pid=3197 auid=500 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=4 comm=†httpd† exe=†/usr/sbin/httpd† subj=root:system_r:httpd_t:s0 key=(null) Although called a summary, this output is a very detailed report that provides the necessary commands to resolve the issue. As shown below, entering /sbin/restorecon -v ’/var/www/html/index. html as suggested not only resolves the problem, but also explains how you should change the security context for the /var/www/html/index. tml file. [[email  protected] ~]$ restorecon -v ’/var/www/html/index. html’ /sbin/restorecon reset /var/www/html/index. html context root:object_r:user_home_t:s0-; root:object_r:httpd_sys_content_t:s0 The previous restorecon -v command changed the security context of /var/www/html/index. html from root:object_r:user_home_t to root:object_r:httpd_sys_content_t. With a root:object_r:httpd_sys_content_t security context, the http dae mon can now access /var/www/html/index. html. Use a Web browser or wget to make another request to the httpd daemon for the index. html file with a restored security context.This time, the request is permitted: [[email  protected] ~]# wget localhost/index. html –21:09:21– http://localhost/index. html Resolving localhost†¦ 127. 0. 0. 1 Connecting to localhost|127. 0. 0. 1|:80†¦ connected. HTTP request sent, awaiting response†¦ 200 OK Length: 0 [text/html] Saving to: ’index. html’ First Steps with Security-Enhanced Linux (SELinux) 7 [ ] 0 –. -K/s in 0s 21:09:21 (0. 00 B/s) – ’index. html’ saved [0/0] Related reference: â€Å"Scope, requirements, and support† on page 1 This blueprint applies to System x running Linux and PowerLinux. You can learn more about the systems to which this information applies.HTTPD and SELinux Booleans SELinux has a set of built-in switches named Booleans or conditional policies t hat you can use to turn specific SELinux features on or off. Entering the getsebool -a | grep http command lists the 23 Booleans related to the http daemon, which are a subset of the 234 Booleans currently defined in the selinux-policy-2. 4. 6-203. el5 policy. These 23 Booleans allow you to customize SELinux policy for the http daemon during runtime without modifying, compiling, or loading a new policy. You can customize the level of http security by setting the relevant Boolean values or toggling between on and off values. [email  protected] ~]$ getsebool -a | grep http allow_httpd_anon_write –> off allow_httpd_bugzilla_script_anon_write –> off allow_httpd_mod_auth_pam –> off allow_httpd_nagios_script_anon_write –> off allow_httpd_prewikka_script_anon_write –> off allow_httpd_squid_script_anon_write –> off allow_httpd_sys_script_anon_write –> off httpd_builtin_scripting –> on httpd_can_network_connect –> off httpd_can _network_connect_db –> off httpd_can_network_relay –> off httpd_can_sendmail –> on httpd_disable_trans –> off httpd_enable_cgi –> on httpd_enable_ftp_server –> off httpd_enable_homedirs –> on httpd_rotatelogs_disable_trans –> off httpd_ssi_exec –> off httpd_suexec_disable_trans –> off httpd_tty_comm –> on httpd_unified –> on httpd_use_cifs –> off httpd_use_nfs –> off SELinux provides three command-line tools for working with Booleans: getsebool, setsebool, and togglesebool. The getsebool –a command returns the current state of all the SELinux Booleans defined by the policy.You can also use the command without the –a option to return settings for one or more specific Booleans entered on the command line, as follows: [[email  protected] ~]$ getsebool httpd_enable_cgi httpd_enable_cgi –> on Use setsebool to set the current state of one or more Booleans by specifying the Boolean and its value. Acceptable values to enable a Boolean are 1, true, and on. Acceptable values to disable a Boolean are 0, false, and off. See the following cases for examples. You can use the -P option with the setsebool command to write the specified changes to the SELinux policy file. These changes are persistent across reboots; unwritten changes remain in effect until you change them or the system is rebooted. Use setsebool to change status of the httpd_enable_cgi Boolean to off: [[email  protected] ~]$ setsebool httpd_enable_cgi 0 8Blueprints: First Steps with Security-Enhanced Linux (SELinux): Hardening the Apache Web Server Confirm status change of the httpd_enable_cgi Boolean: [[email  protected] ~]$ getsebool httpd_enable_cgi httpd_enable_cgi –> off The togglesebool tool flips the current value of one or more Booleans. This tool does not have an option that writes the changes to the policy file. Changes remain in effect until changed or the system is reb ooted. Use the togglesebool tool to switch the status of the httpd_enable_cgi Boolean, as follows: [[email  protected] ~]$ togglesebool httpd_enable_cgi httpd_enable_cgi: active Confirm the status change of the httpd_enable_cgi Boolean: [[email  protected] ~]$ getsebool httpd_enable_cgi httpd_enable_cgi –> onRelated reference: â€Å"Scope, requirements, and support† on page 1 This blueprint applies to System x running Linux and PowerLinux. You can learn more about the systems to which this information applies. Configuring HTTPD security using SELinux Related reference: â€Å"Scope, requirements, and support† on page 1 This blueprint applies to System x running Linux and PowerLinux. You can learn more about the systems to which this information applies. Securing Apache (static content only) The default Red Hat Enterprise Linux 5. 3 installation with SELinux running in enforcing mode provides a basic level of Web server security. You can increase that security level with a little effort.Because security is related to the function of the system, let's start with a Web server that only serves static content from the /var/www/html directory. 1. Ensure that SELinux is enabled and running in enforcing mode: [[email  protected] ~]$ sestatus SELinux status: SELinuxfs mount: Current mode: Mode from config file: Policy version: Policy from config file: enabled /selinux enforcing enforcing 21 2. Confirm that httpd is running as type httpd_t: [[email  protected] html]$ /bin/ps axZ root:system_r:httpd_t 2555 ? root:system_r:httpd_t 2593 ? root:system_r:httpd_t 2594 ? root:system_r:httpd_t 2595 ? root:system_r:httpd_t 2596 ? root:system_r:httpd_t 2597 ? root:system_r:httpd_t 2598 ? root:system_r:httpd_t 2599 ? root:system_r:httpd_t 2600 ? grep http Ss 0:00 httpd S 0:00 httpd S 0:00 httpd S 0:00 httpd S 0:00 httpd S 0:00 httpd S 0:00 httpd S 0:00 httpd S 0:00 httpd 3. Confirm that the /var/www/html directory is assigned the httpd_sys_content_t con text type: [[email  protected] ~]$ ls -Z /var/www/ drwxr-xr-x root root root:object_r:httpd_sys_script_exec_t cgi-bin drwxr-xr-x root root root:object_r:httpd_sys_content_t error drwxr-xr-x root root root:object_r:httpd_sys_content_t html First Steps with Security-Enhanced Linux (SELinux) 9 drwxr-xr-x drwxr-xr-x drwxr-xr-x root root root:object_r:httpd_sys_content_t icons root root root:object_r:httpd_sys_content_t manual webalizer root root:object_r:httpd_sys_content_t usage 4.Confirm that the content to be served is assigned the httpd_sys_content_t context type. For example: [[email  protected] ~]$ ls -Z /var/www/html/index. html -rw-r–r– root root root:object_r:httpd_sys_content_t /var/www/html/index. html Use a Web browser or wget to make a request to the httpd daemon for the index. html file and you should see that permission is granted. To increase the level of protection provided by SELinux, disable any httpd-related features that you do not want by turning off their corresponding Boolean. By default, the following six Boolean are set to on. If you do not need these features, turn them off by setting their Boolean variables to off. [email  protected] ~]# getsebool -a|grep http|grep â€Å"–> on† httpd_builtin_scripting –> on httpd_can_sendmail –> on httpd_enable_cgi –> on httpd_enable_homedirs –> on httpd_tty_comm –> on httpd_unified –> on httpd_can_sendmail If the Web server does not use Sendmail, turn this Boolean to off. This action prevents unauthorized users from sending e-mail spam from this system. httpd_enable_homedirs When this Boolean is set to on, it allows httpd to read content from subdirectories located under user home directories. If the Web server is not configured to serve content from user home directories, set this Boolean to off. httpd_tty_comm By default, httpd is allowed to access the controlling terminal.This action is necessary in certain situations where httpd must prompt the user for a password. If the Web server does not require this feature, set the Boolean to off. httpd_unified This Boolean affects the transition of the http daemon to security domains defined in SELinux policy. Enabling this Boolean creates a single security domain for all http-labeled content. For more information, see SELinux by Example listed under the â€Å"Related information and downloads,† on page 15 section. httpd_enable_cgi If your content does not use the Common Gateway Interface (CGI) protocol, set this Boolean to off. If you are unsure about using CGI in the Web server, try setting it to off and examine the log entries in the /var/log/messages file.The following example shows an error message from /var/log/messages resulting from SELinux blocking httpd execution of a CGI script: May 28 15:48:37 localhost setroubleshoot: SELinux is preventing the http daemon from executing cgi scripts. For complete SELinux messages. run sealert -l 0fdf4649-60df -47b5-bfd5-a72772207adc Entering sealert -l 0fdf4649-60df-47b5-bfd5-a72772207adc produces the following output: Summary: SELinux is preventing the http daemon from executing cgi scripts. Detailed Description: SELinux has denied the http daemon from executing a cgi script. httpd can be setup in a locked down mode where cgi scripts are not allowed to be executed. If the httpd server has been setup to not execute cgi scripts, this could signal a intrusion attempt.Allowing Access: If you want httpd to be able to run cgi scripts, you need to turn on the httpd_enable_cgi Boolean: â€Å"setsebool -P httpd_enable_cgi=1†³ 10 Blueprints: First Steps with Security-Enhanced Linux (SELinux): Hardening the Apache Web Server The following command will allow this access: setsebool -P httpd_enable_cgi=1 Additional Information: Source Context root:system_r:httpd_t Target Context root:object_r:httpd_sys_script_exec_t Target Objects /var/www/cgi-bin [ dir ] Source httpd Source Path httpd Port Hos t localhost. localdomain Source RPM Packages httpd-2. 2. 3-22. el5 Target RPM Packages httpd-2. 2. 3-22. el5 Policy RPM selinux-policy-2. 4. 6-203. l5 Selinux Enabled True Policy Type targeted MLS Enabled True Enforcing Mode Enforcing Plugin Name httpd_enable_cgi Host Name localhost. localdomain Platform Linux localhost. localdomain 2. 6. 18-128. 1. 10. el5 #1 SMP Wed Apr 29 13:55:17 EDT 2009 i686 i686 Alert Count 1 First Seen Thu May 28 15:48:36 2009 Last Seen Thu May 28 15:48:36 2009 Local ID 0fdf4649-60df-47b5-bfd5-a72772207adc Line Numbers Raw Audit Messages host=localhost. localdomain type=AVC msg=audit(1243540116. 963:248): avc: denied { getattr } for pid=2595 comm=†httpd† path=†/var/www/cgi-bin† dev=dm-0 ino=5527166 scontext=root:system_r:httpd_t:s0 tcontext=root:object_r:httpd_sys_script_exec_t:s0 tclass=dir host=localhost. localdomain type=SYSCALL msg=audit(1243540116. 63:248): arch=40000003 syscall=196 success=no exit=-13 a0=8bd0a88 a1=bfc790bc a2=4 d0ff4 a3=2008171 items=0 ppid=2555 pid=2595 auid=4294967295 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=4294967295 comm=†httpd† exe=†httpd† subj=root:system_r:httpd_t:s0 key=(null) At the end of the previous output, listed under the Raw Audit Messages are these lines: â€Å"scontext=root:system_r:httpd_t:s0 tcontext=root:object_r:httpd_sys_script_exec_t:s0 tclass=dir† This output shows you that httpd attempted to access a subdirectory with the httpd_sys_script_exec_t context type. This type is the context type of /var/www/cgi-bin, the directory where httpd looks for CGI scripts. The httpd daemon, with a httpd_t context type, was unable to access this subdirectory because the httpd_enable_cgi variable is set to off.With this configuration, SELinux does not allow a user or process of type httpd_t to access a directory, file, or process of type httpd_sys_script_exec_t. Therefore, the http daemon was denied access to the CGI script located in /var/www/cgi-bin. If you find similar messages in your log file, set the httpd_enable_cgi Boolean to on. httpd_builtin_scripting If you did not configure Apache to load scripting modules by changing the /etc/httpd/conf/ httpd. conf configuration file, set this Boolean to off. If you are unsure, turn httpd_builtin_scripting to off and check the /var/log/messages file for any httpd-related SELinux warnings. See the description of httpd_enable_cgi for an example. PHP and other scripting modules run with the same level of access as the http daemon.Therefore, turning httpd_builtin_scripting to off reduces the amount of access available if the Web server is compromised. To turn off all six of these Booleans and write the values to the policy file by using the setsebool -P command follow these steps: 1. Enter the setsebool -P command: First Steps with Security-Enhanced Linux (SELinux) 11 [[email  protected] ~]# setsebool -P httpd_can_sendmail=0 httpd_enable_homedirs =0 httpd_tty_comm=0 httpd_unified=0 httpd_enable_cgi=0 httpd_builtin_scripting=0 2. Check all the Boolean settings related to httpd by entering getsebool –a | grep httpd. The following output shows that all Boolean are set to off, including the six previously described variables which default to on. [email  protected] ~]$ getsebool -a | grep httpd allow_httpd_anon_write –> off allow_httpd_bugzilla_script_anon_write –> off allow_httpd_mod_auth_pam –> off allow_httpd_nagios_script_anon_write –> off allow_httpd_prewikka_script_anon_write –> off allow_httpd_squid_script_anon_write –> off allow_httpd_sys_script_anon_write –> off httpd_builtin_scripting –> off httpd_can_network_connect –> off httpd_can_network_connect_db –> off httpd_can_network_relay –> off httpd_can_sendmail –> off httpd_disable_trans –> off httpd_enable_cgi –> off httpd_enable_ftp_server –> off httpd_enable _homedirs –> off httpd_rotatelogs_disable_trans –> off httpd_ssi_exec –> off httpd_suexec_disable_trans –> off httpd_tty_comm –> off httpd_unified –> off httpd_use_cifs –> off httpd_use_nfs –> off 3. Use a Web browser or wget to make another request to the httpd daemon for the index. html file and you should succeed. Rebooting your machine does not change this configuration. This completes the necessary basic SELinux settings for hardening a Web server with static content. Next, look at hardening scripts accessed by the http daemon. Related reference: â€Å"Scope, requirements, and support† on page 1 This blueprint applies to System x running Linux and PowerLinux. You can learn more about the systems to which this information applies.Hardening CGI scripts with SELinux In the previous section, you used SELinux Booleans to disable scripting because the Web server used only static content. Beginning with that configuration, you can enable CGI scripting and use SELinux to secure the scripts. 1. Confirm that your Web server is configured as described in section â€Å"Securing Apache (static content only)† on page 9. 2. Red Hat Enterprise Linux provides a CGI script that you can use for testing. You can find the script at /usr/lib/perl5/5. 8. 8/CGI/eg/tryit. cgi. Copy this script to the /var/www/cgi-bin/ directory, as follows: [[email  protected] ~]$ cp /usr/lib/perl5/5. 8. 8/CGI/eg/tryit. gi /var/www/cgi-bin/ 3. Make sure that the first line of the tryit. cgi script contains the correct path to the perl binary. From the which perl output shown below, the path should be changed to ! #/usr/bin/perl. [[email  protected] ~]# which perl /usr/bin/perl [[email  protected] ~]# head -1 /var/www/cgi-bin/tryit. cgi #! /usr/local/bin/perl 4. Confirm that /var/www/cgi-bin is assigned the httpd_sys_script_exec_t context type as follows: [[email  protected] ~]$ ls -Z /var/www/ | grep cgi-bin drwxr-xr-x root root root:object_r:httpd_sys_script_exec_t cgi-bin 12 Blueprints: First Steps with Security-Enhanced Linux (SELinux): Hardening the Apache Web Server 5.Allow and confirm read and execute permission for the tryit. cgi script to all users: [[email  protected] cgi-bin]# chmod 555 /var/www/cgi-bin/tryit. cgi [[email  protected] cgi-bin]# ls -Z -r-xr-xr-x root root root:object_r:httpd_sys_script_exec_t tryit. cgi 6. Confirm that /var/www/cgi-bin/tryit. cgi is assigned the httpd_sys_script_exec_t context type: [[email  protected] ~]$ ls -Z /var/www/cgi-bin/tryit. cgi -r-xr-xr-x root root root:object_r:httpd_sys_script_exec_t /var/www/cgi-bin/tryit. cgi 7. Enable CGI scripting in SELinux and confirm that it is enabled: [[email  protected] cgi-bin]$ setsebool httpd_enable_cgi=1 [[email  protected] cgi-bin]$ getsebool httpd_enable_cgi httpd_enable_cgi –> on 8.Open a Web browser and type the Web server address into the location bar. Include the /cgi-bin/tryit. cgi in the URL. For example, type http://192. 168. 1. 100/cgi-bin/tryit. cgi. The tryit. cgi script should return output similar to Figure 1: Figure 1. Figure 1: A Simple Example 9. Provide test answers to the form fields and click Submit Query. The tryit. cgi script should return output similar to Figure 2: First Steps with Security-Enhanced Linux (SELinux) 13 Figure 2. Figure 2: A Simple Example with results Related reference: â€Å"Scope, requirements, and support† on page 1 This blueprint applies to System x running Linux and PowerLinux. You can learn more about the systems to which this information applies. 14Blueprints: First Steps with Security-Enhanced Linux (SELinux): Hardening the Apache Web Server Appendix. Related information and downloads Related information v Wikipedia: Security-Enhanced Linux http://en. wikipedia. org/wiki/Selinux v Bell-La Padula model http://en. wikipedia. org/wiki/Bell-La_Padula_model v NSA Security-Enhanced Linux http://www. nsa. gov/research/selinux /index. shtml v Managing Red Hat Enterprise Linux 5 presentation http://people. redhat. com/dwalsh/SELinux/Presentations/ManageRHEL5. pdf v developerWorks Security Blueprint Community Forum http://www. ibm. com/developerworks/forums/forum. jspa? forumID=1271 v Red Hat Enterprise Linux 4: Red Hat SELinux Guide http://www. linuxtopia. rg/online_books/redhat_selinux_guide/rhlcommon-section-0055. html v F. Mayer, K. MacMillan, D. Caplan, â€Å"SELinux By Example – Using Security Enhanced Linux† Prentice Hall, 2007 Related reference: â€Å"Scope, requirements, and support† on page 1 This blueprint applies to System x running Linux and PowerLinux. You can learn more about the systems to which this information applies.  © Copyright IBM Corp. 2009 15 16 Blueprints: First Steps with Security-Enhanced Linux (SELinux): Hardening the Apache Web Server Notices This information was developed for products and services offered in the U. S. A. IBM may not offer the products, s ervices, or features discussed in this document in other countries.Consult your local IBM representative for information on the products and services currently available in your area. Any reference to an IBM product, program, or service is not intended to state or imply that only that IBM product, program, or service may be used. Any functionally equivalent product, program, or service that does not infringe any IBM intellectual property right may be used instead. However, it is the user's responsibility to evaluate and verify the operation of any non-IBM product, program, or service. IBM may have patents or pending patent applications covering subject matter described in this document. The furnishing of this document does not grant you any license to these patents.You can send license inquiries, in writing, to: IBM Director of Licensing IBM Corporation North Castle Drive Armonk, NY 10504-1785 U. S. A. The following paragraph does not apply to the United Kingdom or any other country where such provisions are inconsistent with local law: INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS PUBLICATION â€Å"AS IS† WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of express or implied warranties in certain transactions, therefore, this statement may not apply to you. This information could include technical inaccuracies or typographical errors.Changes are periodically made to the information herein; these changes will be incorporated in new editions of the publication. IBM may make improvements and/or changes in the product(s) and/or the program(s) described in this publication at any time without notice. Licensees of this program who wish to have information about it for the purpose of enabling: (i) the exchange of information between independently created programs and other progr ams (including this one) and (ii) the mutual use of the information which has been exchanged, should contact: IBM Corporation Dept. LRAS/Bldg. 903 11501 Burnet Road Austin, TX 78758-3400 U. S. A. Such information may be available, subject to appropriate terms and conditions, including in some cases, payment of a fee.The licensed program described in this document and all licensed material available for it are provided by IBM under terms of the IBM Customer Agreement, IBM International Program License Agreement or any equivalent agreement between us.  © Copyright IBM Corp. 2009 17 For license inquiries regarding double-byte (DBCS) information, contact the IBM Intellectual Property Department in your country or send inquiries, in writing, to: IBM World Trade Asia Corporation Licensing 2-31 Roppongi 3-chome, Minato-ku Tokyo 106-0032, Japan IBM may use or distribute any of the information you supply in any way it believes appropriate without incurring any obligation to you. Informatio n concerning non-IBM products was obtained from the suppliers of those products, their published announcements or other publicly available sources.IBM has not tested those products and cannot confirm the accuracy of performance, compatibility or any other claims related to non-IBM products. Questions on the capabilities of non-IBM products should be addressed to the suppliers of those products. Any references in this information to non-IBM Web sites are provided for convenience only and do not in any manner serve as an endorsement of those Web sites. The materials at those Web sites are not part of the materials for this IBM product and use of those Web sites is at your own risk. This information contains examples of data and reports used in daily business operations. To illustrate them as completely as possible, the examples include the names of individuals, companies, brands, and products.All of these names are fictitious and any similarity to the names and addresses used by an ac tual business enterprise is entirely coincidental. Trademarks IBM, the IBM logo, and ibm. com ® are trademarks or registered trademarks of International Business Machines Corporation in the United States, other countries, or both. If these and other IBM trademarked terms are marked on their first occurrence in this information with a trademark symbol ( ® and â„ ¢), these symbols indicate U. S. registered or common law trademarks owned by IBM at the time this information was published. Such trademarks may also be registered or common law trademarks in other countries. A current list of IBM trademarks is available on the Web at Copyright and trademark information at www. ibm. com/legal/copytrade. html Adobe, the Adobe logo, PostScript, and the PostScript logo are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States, and/or other countries. Java and all Java-based trademarks and logos are registered trademarks of Sun Microsystems, Inc. in the United States, other countries, or both. Linux is a trademark of Linus Torvalds in the United States, other countries, or both. UNIX is a registered trademark of The Open Group in the United States and other countries. Other company, product, or service names may be trademarks or service marks of others. 18 Blueprints: First Steps with Security-Enhanced Linux (SELinux): Hardening the Apache Web Server Printed in USA

Sunday, September 29, 2019

Night Vision Technology

NIGHT VISION TECHNOLOGY 1) Introduction 2) Definition 3) Types of Night Vision Technology 4) Night Vision Devices 5) Generation 6) Application INTRODUCTION Night vision technology is basically allows us to saw in night. It is originally developed for military use. All humans have very poor night vision as compare to other animals. With the poor night vision we cannot see a person standing over so far away (many miles) on a deep dark cloudy night. It is first time invented for military purpose to see the enemy in deep dark and target them easily. The german army gave the idea of night vision and from that time it is fastly develops so strong. They gave the idea in 1935 and start working on it so fastly to cover all battle condition in night time. Then they develop night vision items in their rifles and in other necessary materials of battle field. From there this technology is grown up and all other countries also make sure to use this technology and also to modify this according to their need. These all equipment are use in camera (either simple or in gun front) for the purpose of hunting at night time and in battle affected areas. But they are so advance technology made up of. Then with the help of this equipment they are visible clearly in front of human eyes as in full light to saw it clearly. Today also in houses security and high alert situation these technology is used in vast for the purpose of safety. DEFINITION The definition of night vision technology is basically the detail of its work that how this technology work and what is this in real word. Every one defines it in their own word of experiences, but in my opinion its definition is not its word of expression but its definition is expressed as:†Night vision technology is basically the ability to see things in dark night condition. (Whether by biological or technological mean).Night vision is the combination of two approaches. TYPES OF NIGHT VISION TECHNOLOGY There are two types of night vision technology: 1) Biological Night VisionSome animal like cat and deep sea animal can see in night because they are tissue present in their eye which is called tiputem lucidum. Which is present on the back side of retina? But this layer is not present in human eyes, thus they cannot able to see in night. They need to use some material to saw in night. RODOPOSIN is use for night see. This is a chemical. With help of this chemical human can see for few hours in dark and deep night. Biological is even God gifted senses in humans and animals, by which they saw things in night. These senses are used for night vision. Commonly green eyes of human have the ability to see in night and even in dark night. These all are the naturally created senses in humans and animal eyes. 2) Technical Night VisionTechnical night vision is working in two different ways.In this type of vision many lens are used to achieve pictures in night time. All the material use for this is released specific type of electron which is felt on the picture and they capture the same picture and show on the front of human eyes. Then they saw easily all the things in dark night. As same in the war situation the advance developed material for night vision is used to see the enemy easily in night and mountain dark then with the help of this advance technology they hit the enemy on exact target. Simply technical vision technology is those devices include in which advance technique is used to able one to see in night time in deep dark. Night Vision DevicesNight vision devices are called observation equipment. They observe and detect the pictures and other things in dark night. It is also some time known as night vision goggles. It does works as: the light from night vision excrete and felt on the targeted area this particle is made up of photons which includes all the colors. Then they reflect back and entered in the lens and the whole area is seen to be visible in dark, but it is so sensitive case. Its the same as we see in the games which is made in night scenes. There the whole environment is dark but we clearly saw the targeted area of enemies.All devices which are uses in night vision is shown below: these all devices is used in night time. GENERATIONS 1) 0 GENERATION: The early generation was establishing in (1950-1955) which is not in complete vast Form. 2) 1st GENERATION: In the first generation tubes are used in the equipment in series. They work so will. They also work so perfect than 2nd and 3rd generation. But one defect is present in this generation that the image is show clear at the center but it can distort at all its adages. This heaviest and largest one of first three generation, later is modified and the name has change in other generation. 3) 2ndGENERATION: This generation was made in (1970-1972).A high micro channel plate is used in it. And it is also called high electron multiplier. They also magnify the image in clear form. Its magnifier and resolution is under well developed technology. These channels are built from millions of microscopic hollow glass, and each glass is of 0.0125 in diameter. Sensitive lenses are used in it; they detected the images by its sensitive wavelength. 4) 3rd GENERATION: the previous generations are made advanced and name as 3rd generation. The advancement take place in (1971-1978).the photocathode rays is used in it as an ion barrier. Then they detect images from far distances clear in dark night. It is much better than firstly built generations but not perfect because further development take place fastly in very day life in advance technology world. 5) 4th GENERATION: The American army made advance the 3rd generation with highly developed photocathode lenses and rays and made sure the work of these devices to detect all images in deep dark night clear at center and all of its edges. The ion barrier is also removed which is used in 3rd generation for the purpose to finish the background noise. The switch on and off system made sure rapidly. This generation is used all over the world because it is well developed equipment at all. Higher magnifying lenses are used in it. They are full of all needed and advanced technology materials. APPLICATION The main purpose of night vision technology is to detect enemy target in dark night. Security officers, police officers and also investigating officers use night vision technology broadly according to their need. They trace their position and places in dark night and then perform action on it. Application of night vision is as under below: I. For hunting purposes II. For military purposes III. For security purposes IV. For law enforcement V. For entertainment VI. For navigation purposes VII. For hidden object detection VIII. For surveillance IX. For wildlife observation X. And for automatic brightness control purposes.

Saturday, September 28, 2019

Ampalaya Coffee Essay Example for Free

Ampalaya Coffee Essay This investigatory project aims to prepare and also to make a coffee from the â€Å" Ampalaya Seeds†. We know that Ampalaya or also known as Bitter melon is known for as its bitterness and astringent taste , the bitter melon can see everywhere. This investigatory project encourage us students to make a coffee, as an alternative product . This study was conducted to determine the feasibility of the ampalaya seeds as coffee. The researchers used powdered Ampalaya seeds in this study. After researching and collecting the raw materials, the researchers were able to begin the experimentation. The coffee was obtained by drying, grinding, and roasting the seeds of ampalaya, and boiled. After boiling, the coffee was manually extracted with the use of a clean cloth. The study focuses on producing coffee out of ampalaya seeds. It does not aimed to determine which coffee (ampalaya seeds vs. commercial coffee) has more nutritional value or which is more nutritious. II. Acknowledgement. We would like to thank to the following person that are help us to start and to continuing this our Investigatory Project ,including the following to our ALMIGHTY GOD that help us and give us strength and knowledge to explain the main idea of this investigatory project . To our parents and also our friend who give us supports to finish our Investigatory Project. For our parents that supplies our needs , including the financial needs . THANK YOU !!!!!! Chapter 1: Introduction In our modern generation , many people in our country used coffee especially our grandparents and also our parents. Coffee is known as beverage to the majority of the people. It is known for its stimulating effect on the functions of the brain , thus making the drinker active . Variants of coffee flavors were already produced all throughout the world aiming for the discovery of alternative sources of coffee production . The coffee from ampalaya seeds help us to earn and save money . A. Background of the study Coffee alternatives have been famous since the last two decades due to economic crisis and experimentations for health and medical benefits. Any seeds that are edible when powdered can be used as an alternative source for coffee. The difference of the generic coffee from the seeds of the coffee plant from those of the alternatives is that it has a good amount of caffeine content. The similarity you can find in the alternatives and those of the original is that seeds contain carbohydrates which cause the aroma in roasted coffee. Ampalaya, on the other hand, is a crawling vine that grows mostly on tropical countries like the Philippines. It is said to be rich in iron, potassium, beta-carotene and other nutrients. It is also famous in treating diabetes because of its properties like polypeptide-P; a plant insulin that can lower blood sugar levels. Many researches on agricultural food chemistry convey that it provides nutritionally significant amounts of nutrients, minerals and amino acids that are needed for life. B. Objectives of the study B1. General Objectives 1. To determine if the ampalaya seeds have considerable characteristics of the products in terms of color, aroma, taste, and acidity. B2. Specific Objectives 1. To produce coffee using ampalaya seeds as the main ingredient. 2. To determine and compare the levels of acceptability of the coffee samples. C. Hypotheses NULL 1. There is no significant difference among the different ampalaya coffee samples developed in terms of their color, aroma, and taste. ALTERNATIVE 1. There is no significant difference among the different ampalaya coffee samples developed in terms of their acceptability. D. Significance of the study Momordica Charantia or ampalaya seeds contain iron and folic acid which are essential for the production of the red blood cells and the formulation of hemoglobin and myoglobin. Coffee is usually drunk hot, black or with cream and sugar and also drunk cold as iced coffee, specially summer. People are used of drinking coffee every morning to warmth their body and at night to avoid being sleepy. But coffee contains a stimulant called caffeine. The result of this will determine if the coffee made from ampalaya seeds can be use as a substitute for the commercial coffee. This study aimed to produce coffee using ampalaya seeds as substitute. The study was important because ampalaya is abundant in the Philippines. The product may be an anti-diabetes coffee but it is not the main concern of the study. Everybody can benefit of the result of the study unless a coffee drinker. It would recycle the ampalaya seeds instead of being thrown away which a lot of people consider it as waste. E. Scope and limitation The proposed study was limited to producing coffee out of ampalaya (Momordica charantia Linn. ) seeds. Three samples were prepared with different ampalaya seed concentration and same amount of water for comparison purposes in which one of the samples was pure commercial coffee. The samples were processed by the basic methods of making coffee: roasting, grinding, and brewing. Ampalaya Coffee. (2017, Mar 08).

Friday, September 27, 2019

Death penalty Essay Example | Topics and Well Written Essays - 1250 words - 5

Death penalty - Essay Example The turmoil experienced in prison makes the place a hellhole and is good enough to serve as punishment for the law breakers. The only life giver-and-taker is believed to be God in terms of religion. Anyone who takes away life therefore, including the owner, serves as a sinner as per the Decalogue. Involving death as a form of punishment therefore is not even close to the right way of correcting. Across all states, there ought to be revisions in case any has adopted capital punishment for criminals. They need to revisit how valuable life is, how irreplaceable it is, and how holy it is believed to be. Never can one be rectified by killing them. It is of no good to them when they are already dead (Should Death Penalty allowed, n.d). My view is in contradiction with the death penalty as it offers governments rights to kill. One of the human rights is the right to enjoy the gift of life. Under no circumstances therefore should an individual be denied the privilege to live. If it is correction for moral uprightness, it cannot be done by subjecting the individual to death. A dead person does not suffer any consequences. It does not make sense when the state tries to do away with a problem by acting more of the same problem. It would be more logical if these murderers and other law breakers are allowed to live as changed souls that will influence change in other citizens with the same intentions. Let the state induce a better way of rectifying the character then allow them to influence change to society. Cases have been witnessed of the worst law breakers turning a new leaf only to become the best preachers. Their testimonies end up to be the best weapons in reaching out to the unnoticed criminals and drawing them t owards becoming best vessels of honor. Even the government itself cannot make the impact towards change of character that one redeemed criminal could make if given the chance.