Share to: share facebook share twitter share wa share telegram print page

Privilege separation

In computer programming and computer security, privilege separation (privsep) is one software-based technique for implementing the principle of least privilege.[1][2] With privilege separation, a program is divided into parts which are limited to the specific privileges they require in order to perform a specific task. This is used to mitigate the potential damage of a computer security vulnerability.

Implementation

A common method to implement privilege separation is to have a computer program fork into two processes. The main program drops privileges, and the smaller program keeps privileges in order to perform a certain task. The two halves then communicate via a socket pair. Thus, any successful attack against the larger program will gain minimal access, even though the pair of programs will be capable of performing privileged operations.

Privilege separation is traditionally accomplished by distinguishing a real user ID/group ID from the effective user ID/group ID, using the setuid(2)/setgid(2) and related system calls, which were specified by POSIX. If these are incorrectly positioned, gaps can allow widespread network penetration.

Many network service daemons have to do a specific privileged operation such as open a raw socket or an Internet socket in the well known ports range. Administrative utilities can require particular privileges at run-time as well. Such software tends to separate privileges by revoking them completely after the critical section is done, and change the user it runs under to some unprivileged account after so doing. This action is known as dropping root under Unix-like operating systems. The unprivileged part is usually run under the "nobody" user or an equivalent separate user account.

Privilege separation can also be done by splitting functionality of a single program into multiple smaller programs, and then assigning the extended privileges to particular parts using file system permissions. That way the different programs have to communicate with each other through the operating system, so the scope of the potential vulnerabilities is limited (since a crash in the less privileged part cannot be exploited to gain privileges, merely to cause a denial-of-service attack).

Examples

Dovecot

Another email server software designed with privilege separation and security in mind is Dovecot.[3]

OpenBSD

Separation of privileges is one of the major OpenBSD security features.[4][5]

OpenSSH

OpenSSH uses privilege separation to ensure pseudo terminal (pty) creation happens in a secure part of the process, away from per connection processes with network access.[6]

Postfix

The implementation of Postfix was focused on implementing comprehensive privilege separation.[7][8]

Solaris

Solaris implements a separate set of functions for privilege bracketing.[9]

See also

References

  1. ^ Provos, Niels; Friedl, Markus; Honeyman, Peter (August 4, 2003). "Preventing Privilege Escalation" (PDF). Archived (PDF) from the original on March 25, 2023.
  2. ^ "Privilege separation". QNX Software Development Platform. May 17, 2024. Archived from the original on April 14, 2024.
  3. ^ "System users used by Dovecot". doc.dovecot.org. August 14, 2024. Archived from the original on June 30, 2024.
  4. ^ Obser, Florian (February 19, 2023). "Privilege drop, privilege separation, and restricted-service operating mode in OpenBSD". sha256.net. Archived from the original on June 6, 2024.
  5. ^ de Raadt, Theo (September 24, 2006). "Exploit Mitigation Techniques". OpenBSD. Archived from the original on May 15, 2024.
  6. ^ Provos, Niels (August 9, 2003). "Privilege Separated OpenSSH". Center for Information Technology Integration. Archived from the original on August 6, 2024.
  7. ^ "Postfix Architecture". 2024. Archived from the original on August 3, 2024.
  8. ^ "Privilege Separation". csail.mit.edu. 2022. Archived from the original on July 23, 2024.
  9. ^ "Bracketing Effective Privileges". Trusted Solaris Developer's Guide. 2010. Archived from the original on August 14, 2024.

Read other articles:

Seorang cosplayer wanita memerankan Akira, tokoh laki-laki dari permainan video Togainu no Chi. Lakon lintas busana (Inggris: crossplay, lakuran dari cross-dressing dan cosplaycode: en is deprecated ) adalah cosplay di saat seseorang berpakaian seperti tokoh yang berbeda gender dari dirinya.[1] Orang yang melakukan crossplay disebut dengan crossplayer. Crossplay ditemukan seiring dengan berjalannya konvensi anime. Sama seperti cosplay, crossplay tidak lagi eksklusif bagi genre tertentu s…

Centro del Lobo Ibérico de Castilla y León Entrada al recintoLocalizaciónPaís EspañaLocalidad RobledoUbicación RobledoCoordenadas 41°59′35″N 6°34′27″O / 41.993111111111, -6.5741361111111Información generalUsos Centro de interpretaciónPropietario Junta de Castilla y LeónDiseño y construcciónArquitecto Leocadio Peláezwww.centrodellobo.es[editar datos en Wikidata] El Centro del Lobo Ibérico de Castilla y León es un complejo educativo ubicado en la l…

Ini adalah nama Korea; marganya adalah Choe. Choe Hyon Menteri Angkatan Bersenjata RakyatMasa jabatan1968–1976 PendahuluChoe KwangPenggantiO Jin-u Informasi pribadiLahir(1907-05-06)6 Mei 1907Hunchun, Jilin, ChinaMeninggal10 April 1982(1982-04-10) (umur 74)KebangsaanKorea UtaraPartai politikPartai Pekerja KoreaAfiliasi politiklainnyaCommunist Party of ChinaAnakChoe Ryong-hae, Gop-danOrang tuaChoe Hwa-shim (ayah)Nama KoreaJosŏn-gŭl최현 Hanja崔賢 Alih AksaraChoe Hyeon[1]McCune…

Parareptilia Periode Moscovian - Rhaetian, 306–201.3 jtyl PreЄ Є O S D C P T J K Pg N [1] TaksonomiKerajaanAnimaliaFilumChordataKelasReptiliaSubkelasParareptilia Ordo †Mesosauria †Millerosauria †Procolophonomorpha lbs Parareptilia (di sisi reptil) adalah subkelas atau klad sauropsida (reptil) basal, biasanya dianggap sebagai takson saudara dari Eureptilia (kelompok yang kemungkinan berisi semua reptil hidup). Parareptil muncul pertama kali saat mendekati akhir dari periode…

Experimental rock music mixed with noise This article is about the specific genre. For the general application of noise in rock music, see Noise in music § Rock music, and Noise music § Noise rock and no wave. Not to be confused with hard rock. Noise rockFlipper at the 9:30 Club, Washington, D.C., 1984Other namesNoise punkStylistic origins Experimental rock punk rock noise minimal psychedelic rock acid rock industrial hardcore punk[1] Cultural originsc. Mid-1960s to 198…

2013 GEICO 400 Race details[1] Race 27 of 36 in the 2013 NASCAR Sprint Cup Series Chicagoland Speedway track layoutDate September 15, 2013 (2013-09-15)Location Chicagoland SpeedwayJoliet, Illinois, United StatesCourse Permanent racing facility1.500 mi (2.414 km)Distance 267 laps, 400.5 mi (644.5 km)Weather Temperatures up to 70.5 °F (21.4 °C); wind speeds up to 6 miles per hour (9.7 km/h)[2]Pole positionDriver Joey Logano Penske RacingTime 28.509 s…

Arash Borhani Informasi pribadiNama lengkap Arash BorhaniTanggal lahir 14 September 1983 (umur 40)Tempat lahir Kerman, IranTinggi 1,75 m (5 ft 9 in)Posisi bermain PenyerangInformasi klubKlub saat ini EsteghlalNomor 9Karier junior1997–2001 Shahrdari Kerman2001–2002 PasKarier senior*Tahun Tim Tampil (Gol)2002–2006 Pas 94 (34)2006–2007 Al Nasr Dubai 7 (1)2007 → Pas (pinjam) 11 (2)2007– Esteghlal 209 (92)Tim nasional‡2003–2006 Iran U-23 16 (12)2003–2010 Iran 37 …

Vie nuoveStato Italia Linguaitaliano Periodicitàsettimanale FondatoreLuigi Longo Fondazione1946 Chiusura1978 SedeRoma   Modifica dati su Wikidata · Manuale Vie nuove è stata una rivista legata al Partito Comunista Italiano fondata nel 1946 da Luigi Longo. Indice 1 Storia 2 Note 3 Voci correlate 4 Collegamenti esterni Storia Inizialmente sottotitolata Settimanale di orientamento e lotta politica, la rivista «fu costretta fin quasi da subito a dare ampio spazio ad argomenti legg…

Mazie Hirono Portrait officiel de Mazie Hirono en 2013. Fonctions Sénatrice des États-Unis En fonction depuis le 3 janvier 2013(11 ans, 3 mois et 10 jours) Avec Brian Schatz Élection 6 novembre 2012 Réélection 6 novembre 2018 Circonscription Hawaï Législature 113e, 114e, 115e, 116e, 117e et 118e Groupe politique Démocrate Prédécesseur Daniel Akaka Représentante des États-Unis 3 janvier 2007 – 3 janvier 2013(6 ans) Élection 7 novembre 2006 Réélection 4 novembr…

California SurfCalcio Segni distintivi Uniformi di gara Casa Trasferta Colori sociali Dati societari Città Anaheim Nazione  Stati Uniti Confederazione CONCACAF Federazione USSF Campionato NASL Fondazione 1978 Scioglimento1981 Stadio ( posti) Palmarès Si invita a seguire il modello di voce Il California Surf fu un club calcistico statunitense di Anaheim (California) che militò nella North American Soccer League dal 1978 al 1981. Indice 1 Storia 2 Cronistoria 3 Allenatori 4 Calciatori 5 No…

Ne doit pas être confondu avec Champ de Mars (métro de Paris). Champ de Mars - Tour Eiffel La gare vue des quais de Seine. Localisation Pays France Commune Paris Arrondissement 7e et 15e Adresse Quai Branly(Pont de Bir-Hakeim)75007 Paris / 75015 Paris Coordonnées géographiques 48° 51′ 24″ nord, 2° 17′ 23″ est Gestion et exploitation Propriétaire SNCF Exploitant SNCF Code UIC 87393058 Site Internet La gare du Champ de Mars - Tour Eiffel, sur le site of…

Voce principale: Associazione Sportiva Dilettantistica Vis Pesaro 1898. Società Sportiva Vis PesaroStagione 1978-1979Sport calcio Squadra Vis Pesaro Allenatore Giampaolo Landi Presidente Marino Bellagamba e Mario Nicolini Walter Scavolini Serie C26º posto nel girone C. Maggiori presenzeCampionato: Ferrini, Spina (33) Miglior marcatoreCampionato: Spina (10) 1977-1978 1979-1980 Si invita a seguire il modello di voce Questa pagina raccoglie le informazioni riguardanti la Società Sportiva Vi…

Halaman ini berisi artikel tentang ponsel pintar yang diperkenalkan pada tahun 2010. Untuk ponsel-ponsel selanjutnya, lihat seri Samsung Galaxy S. Samsung Galaxy S Samsung Galaxy S adalah sebuah telepon pintar Android format datar layar sentuh yang dirancang, dikembangkan, dirilis, dan dipasarkan oleh Samsung Electronics. Ini adalah perangkat pertama dari serial telepon pintar Android ketiga yang diproduksi oleh Samsung.[1] Ini diumumkan kepada pers pada Maret 2010 dan dirilis untuk penj…

Dylan O'BrienO'Brien di San Diego Comic-Con International 2017Lahir26 Agustus 1991 (umur 32)Kota New York, New York, Amerika SerikatTempat tinggalLos Angeles, Kalifornia, Amerika Serikat[1]PendidikanSMA Mira CostaPekerjaanAktorTahun aktif2011-sekarangKota asalSpringfield Township, New Jersey, Amerika Serikat Dylan O'Brien (lahir 26 Agustus 1991) adalah seorang aktor asal Amerika Serikat. Dia dikenal karena peran utamanya sebagai Thomas dalam trilogi petualangan fiksi ilmia…

Spice, flower buds of Syzygium aromaticum This article is about the spice. For other uses, see Clove (disambiguation). Cloves redirects here. For other uses, see CLOVES syndrome and Cloves (singer).Not to be confused with Clover. Clove Scientific classification Kingdom: Plantae Clade: Tracheophytes Clade: Angiosperms Clade: Eudicots Clade: Rosids Order: Myrtales Family: Myrtaceae Genus: Syzygium Species: S. aromaticum Binomial name Syzygium aromaticum(L.) Merr. & L.M.Perry Synonyms[…

American culture and comedy podcast PodcastRed ScarePresentationHosted byAnna KhachiyanDasha NekrasovaGenreCultural criticismhumorpoliticsLanguageEnglishLength60–120 minutesCountry of originUnited StatesProductionProductionMeg Murnane (Mar–Oct 2018), subsequently self-producedTheme music composed byTrevor HornMartin KierszenbaumOpening themeAll the Things She Said by t.A.T.uAudio formatMP3No. of episodes375PublicationOriginal releaseMarch 29, 2018; 6 years ago (2018-03-29)R…

Bahasa Lak лакку маз (lakku maz) Dituturkan diRusiaWilayahDagestan SelatanPenutur152,050 (2010)[1] Rincian data penutur Jumlah penutur beserta (jika ada) metode pengambilan, jenis, tanggal, dan tempat.[2] 154.820 (2010) Rumpun bahasaKaukasia Timur Laut Lak Sistem penulisanKirilStatus resmiBahasa resmi di DagestanKode bahasaISO 639-3lbeGlottologlakk1252[3] Status pemertahanan Punah EXSingkatan dari Extinct (Punah)Terancam CRSingkatan dari Critic…

Voce principale: Associazione Sportiva Lucchese Libertas 1905. Associazione Sportiva Lucchese LibertasStagione 1995-1996Le forze della Lucchese per la stagione 1995-1996 Sport calcio Squadra Lucchese Allenatore Bruno Bolchi All. in seconda Giampaolo Piaceri Presidente Egiziano Maestrelli Serie B6º posto Coppa ItaliaSecondo turno Maggiori presenzeCampionato: Giusti, Russo (37)Totale: Giusti, Russo (39) Miglior marcatoreCampionato: Rastelli (14)Totale: Rastelli (15) 1994-1995 1996-1997 Si in…

Cycling race Six Days of ZürichSix days ZürichRace detailsRegionZürich, SwitzerlandDisciplineTrackTypeSix-day racingWeb sitewww.sixdays-zuerich.ch HistoryFirst edition1954 (1954)Final edition2014First winner Hugo Koblet (SUI)  Armin von Büren (SUI)Final winner Mark Cavendish (GBR)  Iljo Keisse (BEL) The Six Days of Zürich was a six-day track cycling race held annually in Zürich, Switzerland. The event was first held in 1…

District in Isfahan province, Iran Not to be confused with Emamzadeh Aqaali Abbas Rural District.For other places with a similar name, see Emamzadeh. District in Isfahan, IranEmamzadeh District Persian: بخش امامزادهDistrictEmamzadeh DistrictCoordinates: 33°45′34″N 52°03′54″E / 33.75944°N 52.06500°E / 33.75944; 52.06500[1]CountryIranProvinceIsfahanCountyNatanzCapitalBadrudPopulation (2016)[2] • Total23,745Time zoneUTC…

Kembali kehalaman sebelumnya