<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/kern/p1003_1b.c, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2024-02-14T14:24:11Z</updated>
<entry>
<title>sched_setscheduler(2): Change realtime privilege check</title>
<updated>2024-02-14T14:24:11Z</updated>
<author>
<name>Florian Walpen</name>
<email>dev@submerge.ch</email>
</author>
<published>2024-02-14T13:50:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2198221bd9df0ceb69945120bc477309a5729241'/>
<id>urn:sha1:2198221bd9df0ceb69945120bc477309a5729241</id>
<content type='text'>
Check for privilege PRIV_SCHED_SETPOLICY instead of PRIV_SCHED_SET, to
at least make it coherent with what is done at thread creation when
a realtime policy is requested, and have users authorized by
mac_priority(4) pass it.

This change is good enough in practice since it only allows 'root' (as
before) and mac_priority(4)'s authorized users in (the point of this
change), without other side effects.  More changes in this area, to
generally ensure that all privilege checks are consistent, are going to
come as olce's priority revamp project lands.

(olce: Expanded the explanations.)

PR:                     276962
Reported by:            jbeich
Reviewed by:            olce
Approved by:            emaste (mentor)
MFC after:              3 days
Differential Revision:  https://reviews.freebsd.org/D43835
</content>
</entry>
<entry>
<title>sys: Remove $FreeBSD$: one-line .c pattern</title>
<updated>2023-08-16T17:54:36Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=685dc743dc3b5645e34836464128e1c0558b404b'/>
<id>urn:sha1:685dc743dc3b5645e34836464128e1c0558b404b</id>
<content type='text'>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
</content>
</entry>
<entry>
<title>sysent: Get rid of bogus sys/sysent.h include.</title>
<updated>2022-05-28T17:52:17Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2022-05-28T17:52:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=31d1b816fe139f46083f8609c34b7d129a6e2ee0'/>
<id>urn:sha1:31d1b816fe139f46083f8609c34b7d129a6e2ee0</id>
<content type='text'>
Where appropriate hide sysent.h under proper condition.

MFC after:	2 weeks
</content>
</entry>
<entry>
<title>spdx: initial adoption of licensing ID tags.</title>
<updated>2017-11-18T14:26:50Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2017-11-18T14:26:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=df57947f083046d50552e99b91074927d2458708'/>
<id>urn:sha1:df57947f083046d50552e99b91074927d2458708</id>
<content type='text'>
The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

Special thanks to Wind River for providing access to "The Duke of
Highlander" tool: an older (2014) run over FreeBSD tree was useful as a
starting point.

Initially, only tag files that use BSD 4-Clause "Original" license.

RelNotes:	yes
Differential Revision:	https://reviews.freebsd.org/D13133
</content>
</entry>
<entry>
<title>Use passed thread pointer instead of curthread in sys_sched_yield</title>
<updated>2017-11-12T02:34:33Z</updated>
<author>
<name>Mateusz Guzik</name>
<email>mjg@FreeBSD.org</email>
</author>
<published>2017-11-12T02:34:33Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=fe7979a12c6455b9f4518f592feca16a4dc89ab7'/>
<id>urn:sha1:fe7979a12c6455b9f4518f592feca16a4dc89ab7</id>
<content type='text'>
No functional changes.
</content>
</entry>
<entry>
<title>In preparation for switching linuxulator to the use the native 1:1</title>
<updated>2015-05-24T14:44:06Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2015-05-24T14:44:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a93e83c8d724de66295929dda3d506f4163ee9d2'/>
<id>urn:sha1:a93e83c8d724de66295929dda3d506f4163ee9d2</id>
<content type='text'>
threads split sys_sched_getparam(), sys_sched_setparam(),
sys_sched_getscheduler(), sys_sched_setscheduler() to their kern_*
counterparts and add targettd parameter to allow specify the target
thread directly by callee.

Differential Revision:	https://reviews.freebsd.org/D1034
Reviewed by:	trasz
</content>
</entry>
<entry>
<title>In preparation for switching linuxulator to the use the native 1:1</title>
<updated>2015-05-24T14:39:26Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2015-05-24T14:39:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1aa90eca33daf387ac760658abe01000368e4acc'/>
<id>urn:sha1:1aa90eca33daf387ac760658abe01000368e4acc</id>
<content type='text'>
threads refactor kern_sched_rr_get_interval() and sys_sched_rr_get_interval().
Add a kern_sched_rr_get_interval() counterpart which takes a targettd
parameter to allow specify target thread directly by callee (new Linuxulator).

Linuxulator temporarily uses first thread in proc.

Move linux_sched_rr_get_interval() to the MI part.

Differential Revision:	https://reviews.freebsd.org/D1032
Reviewed by:	trasz
</content>
</entry>
<entry>
<title>In order to maximize the re-usability of kernel code in user space this</title>
<updated>2011-09-16T13:58:51Z</updated>
<author>
<name>Kip Macy</name>
<email>kmacy@FreeBSD.org</email>
</author>
<published>2011-09-16T13:58:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8451d0dd78c0a9c0383485b18aba9f081a9db8bb'/>
<id>urn:sha1:8451d0dd78c0a9c0383485b18aba9f081a9db8bb</id>
<content type='text'>
patch modifies makesyscalls.sh to prefix all of the non-compatibility
calls (e.g. not linux_, freebsd32_) with sys_ and updates the kernel
entry points and all places in the code that use them. It also
fixes an additional name space collision between the kernel function
psignal and the libc function of the same name by renaming the kernel
psignal kern_psignal(). By introducing this change now we will ease future
MFCs that change syscalls.

Reviewed by:	rwatson
Approved by:	re (bz)
</content>
</entry>
<entry>
<title>Set various POSIX capability sysctls to the version of the API that is</title>
<updated>2010-11-19T17:56:16Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2010-11-19T17:56:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=34c1c5992faa32558bcc47c5b851d5a9f2fcaa6f'/>
<id>urn:sha1:34c1c5992faa32558bcc47c5b851d5a9f2fcaa6f</id>
<content type='text'>
supported rather than 1.  They are supposed to return a suitable value
for sysconf(3).  While here, make the fsync sysctl match &lt;unistd.h&gt;.

MFC after:	1 week
</content>
</entry>
<entry>
<title>- kern_sched_rr_get_interval should return interval for thread 1 in</title>
<updated>2010-09-29T07:31:05Z</updated>
<author>
<name>David Xu</name>
<email>davidxu@FreeBSD.org</email>
</author>
<published>2010-09-29T07:31:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=931e4573df92553644d085a48074a1008181c6c7'/>
<id>urn:sha1:931e4573df92553644d085a48074a1008181c6c7</id>
<content type='text'>
  target process.
- eliminate a goto.

MFC after: 1 week
</content>
</entry>
</feed>
