Do you have more information on this? All I found was the teachers and professors section of the Safari terms of service where it states a teacher may:
- post, for the benefit of your students, up to 2 sections of our books on your university or other school intranet. (Safari chapters are sets of individually viewable sections.) You agree to monitor the usage of this site and agree to take it down if it is being used by other than your students and when your class term is completed.
- reproduce photocopies of up to 2 sections of our books for the benefit of your students. However, if any more material is assigned to your students, they will be required to purchase their own issues.
Are you sure your school is complying with the terms of service? Or maybe the books they list are part of the O'Reilly open books project.